Skip to content

Commit

Permalink
Merge pull request VITA-Group#134 from choprahetarth/master
Browse files Browse the repository at this point in the history
Fixed error VITA-Group#133
  • Loading branch information
Sandbox3aster authored May 4, 2022
2 parents 756db7f + e36dc2f commit 595f258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class Predictor:
def __init__(self, weights_path: str, model_name: str = ''):
with open('config/config.yaml') as cfg:
config = yaml.load(cfg)
config = yaml.load(cfg, Loader=yaml.FullLoader)
model = get_generator(model_name or config['model'])
model.load_state_dict(torch.load(weights_path)['model'])
self.model = model.cuda()
Expand Down

0 comments on commit 595f258

Please sign in to comment.