Skip to content

Commit

Permalink
revert accidental change to load_model
Browse files Browse the repository at this point in the history
  • Loading branch information
zhvng committed Mar 21, 2023
1 parent c53e9f5 commit a19337f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion open_musiclm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def load_model(model, path):
path = Path(path)
assert path.exists(), f'checkpoint does not exist at {str(path)}'
pkg = torch.load(str(path))
model.load_state_dict(pkg, strict=False)
model.load_state_dict(pkg)

class disable_print:
def __enter__(self):
Expand Down

0 comments on commit a19337f

Please sign in to comment.