File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ def get_model_params(model_name, override_params):
295295 return blocks_args , global_params
296296
297297
298- url_map_aa = {
298+ url_map = {
299299 'efficientnet-b0' : 'https://publicmodels.blob.core.windows.net/container/aa/efficientnet-b0-355c32eb.pth' ,
300300 'efficientnet-b1' : 'https://publicmodels.blob.core.windows.net/container/aa/efficientnet-b1-f1951068.pth' ,
301301 'efficientnet-b2' : 'https://publicmodels.blob.core.windows.net/container/aa/efficientnet-b2-8bb594d6.pth' ,
@@ -323,8 +323,8 @@ def get_model_params(model_name, override_params):
323323def load_pretrained_weights (model , model_name , load_fc = True , advprop = False ):
324324 """ Loads pretrained weights, and downloads if loading for the first time. """
325325 # AutoAugment or Advprop (different preprocessing)
326- url_map = url_map_advprop if advprop else url_map_aa
327- state_dict = model_zoo .load_url (url_map [model_name ])
326+ url_map_ = url_map_advprop if advprop else url_map
327+ state_dict = model_zoo .load_url (url_map_ [model_name ])
328328 if load_fc :
329329 model .load_state_dict (state_dict )
330330 else :
You can’t perform that action at this time.
0 commit comments