We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5979e5d commit f8a085bCopy full SHA for f8a085b
hubconf.py
@@ -15,7 +15,8 @@ def unet_carvana(pretrained=False, scale=0.5):
15
else:
16
raise RuntimeError('Only 0.5 and 1.0 scales are available')
17
state_dict = torch.hub.load_state_dict_from_url(checkpoint, progress=True)
18
- state_dict.pop('mask_values')
+ if 'mask_values' in state_dict:
19
+ state_dict.pop('mask_values')
20
net.load_state_dict(state_dict)
21
22
return net
0 commit comments