Spaces:
Running
Running
Update model/FGResQ.py
Browse files- 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 = {}
|