Skip to content

Commit

Permalink
🐞 Bug Fix: Return results of load_state_dict func (#546)
Browse files Browse the repository at this point in the history
you have to reutrn the results of load_state_dict if you wrappered the original one
  • Loading branch information
zywvvd committed Sep 9, 2022
1 parent c37764c commit dff86b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anomalib/models/components/base/anomaly_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,4 @@ def load_state_dict(self, state_dict: OrderedDict[str, Tensor], strict: bool = T
"""
# Used to load missing normalization and threshold parameters
self._load_normalization_class(state_dict)
super().load_state_dict(state_dict, strict=strict)
return super().load_state_dict(state_dict, strict=strict)

0 comments on commit dff86b1

Please sign in to comment.