Skip to content

Commit

Permalink
missing self. in weights_filename_local (#79)
Browse files Browse the repository at this point in the history
line 218 when the weight is somehow not loaded correctly
we get an error on weights_filename_local is not defined instead of the real error
which is because it should be self.weights_filename_local instead of weights_filename_local
  • Loading branch information
KiLJ4EdeN authored Dec 13, 2021
1 parent 1898529 commit f5a3799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchxrayvision/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def __init__(self,

self.load_state_dict(savedmodel.state_dict())
except Exception as e:
print("Loading failure. Check weights file:", weights_filename_local)
print("Loading failure. Check weights file:", self.weights_filename_local)
raise e

self.eval()
Expand Down

0 comments on commit f5a3799

Please sign in to comment.