pooyanrg commited on
Commit
b39464b
·
1 Parent(s): 6505170
Files changed (1) hide show
  1. utils/model.py +1 -1
utils/model.py CHANGED
@@ -193,7 +193,7 @@ class CLIP4IDC(CLIP4IDCPreTrainedModel):
193
 
194
  def init_model(model_path, device):
195
 
196
- model_state_dict = torch.load(model_path, weights_only=False, map_location='cpu')
197
 
198
  # Prepare model
199
  cache_dir = ""
 
193
 
194
  def init_model(model_path, device):
195
 
196
+ model_state_dict = torch.load(model_path, map_location='cpu')
197
 
198
  # Prepare model
199
  cache_dir = ""