Skip to content

Commit

Permalink
Merge branch 'master' of github.com:kaanaksit/odak
Browse files Browse the repository at this point in the history
  • Loading branch information
kaanaksit committed Nov 14, 2024
2 parents 7c512b8 + 3dcd315 commit 70c4136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odak/learn/wave/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def load_weights(self, weight_filename, key_mapping_filename):
Path to the JSON file containing the key mappings.
"""
# Load old model weights
old_model_weights = torch.load(weight_filename, map_location = self.device)
old_model_weights = torch.load(weight_filename, map_location = self.device,weights_only=True)

# Load key mappings from JSON file
with open(key_mapping_filename, 'r') as json_file:
Expand Down

0 comments on commit 70c4136

Please sign in to comment.