@@ -632,7 +632,7 @@ def _remap_preact_resnet_model(model_url: str):
632632 pattern_bna = re .compile (r"^(.+\.d\d+)\.blk_bna\.(.+)" )
633633 # download the pretrained weights into torch hub's default dir
634634 weights_dir = os .path .join (torch .hub .get_dir (), "preact-resnet50.pth" )
635- download_url (model_url , fuzzy = True , filepath = weights_dir , progress = False )
635+ download_url (model_url , filepath = weights_dir , progress = False )
636636 map_location = None if torch .cuda .is_available () else torch .device ("cpu" )
637637 state_dict = torch .load (weights_dir , map_location = map_location , weights_only = True )["desc" ]
638638
@@ -667,7 +667,7 @@ def _remap_standard_resnet_model(model_url: str, state_dict_key: str | None = No
667667 pattern_downsample1 = re .compile (r"^(res_blocks.d\d+).+\.downsample\.1\.(.+)" )
668668 # download the pretrained weights into torch hub's default dir
669669 weights_dir = os .path .join (torch .hub .get_dir (), "resnet50.pth" )
670- download_url (model_url , fuzzy = True , filepath = weights_dir , progress = False )
670+ download_url (model_url , filepath = weights_dir , progress = False )
671671 map_location = None if torch .cuda .is_available () else torch .device ("cpu" )
672672 state_dict = torch .load (weights_dir , map_location = map_location , weights_only = True )
673673 if state_dict_key is not None :
0 commit comments