Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f40b6ed

Browse files
authored
Update hub_mixin.py (#909)
Fix the error caused by pop operation on non-existing key in dict.
1 parent c68fc94 commit f40b6ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎segmentation_models_pytorch/base/hub_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def save_pretrained(
120120
finally:
121121
# delete the additional attributes
122122
self._del_attrs(["save_directory", "metrics", "dataset"])
123-
self._hub_mixin_config.pop("_model_diff-ddc564a4f580a1a0e674d7b0312555d2c3a29d2a025e53de685c156a0bf7f745-123-123-0" data-selected="false" role="gridcell" tabindex="-1">
123+
self._hub_mixin_config.pop("_model_class", None)
124124

125125
return result
126126

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /