orpheus0429 commited on
Commit
503caa3
·
verified ·
1 Parent(s): a13ef4b

Update model/FGResQ.py

Browse files
Files changed (1) hide show
  1. model/FGResQ.py +1 -1
model/FGResQ.py CHANGED
@@ -83,7 +83,7 @@ class DualBranch(nn.Module):
83
  Load pre-trained weights, including the CLIP model and classification head.
84
  """
85
  # Load state dictionary
86
- state_dict = torch.load(state_dict_path)
87
 
88
  # Separate weights for CLIP model and classification head
89
  clip_state_dict = {}
 
83
  Load pre-trained weights, including the CLIP model and classification head.
84
  """
85
  # Load state dictionary
86
+ state_dict = torch.load(state_dict_path, map_location=torch.device('cpu'))
87
 
88
  # Separate weights for CLIP model and classification head
89
  clip_state_dict = {}