Spaces:
Sleeping
Sleeping
Update utils/classifier.py
Browse files- utils/classifier.py +1 -1
utils/classifier.py
CHANGED
|
@@ -51,7 +51,7 @@ def load_wbc_classifier(weights_path: str | Path):
|
|
| 51 |
)
|
| 52 |
|
| 53 |
# Load checkpoint
|
| 54 |
-
ckpt = torch.load(weights_path, map_location=DEVICE)
|
| 55 |
if "model_state_dict" in ckpt:
|
| 56 |
model.load_state_dict(ckpt["model_state_dict"])
|
| 57 |
else:
|
|
|
|
| 51 |
)
|
| 52 |
|
| 53 |
# Load checkpoint
|
| 54 |
+
ckpt = torch.load(weights_path, map_location=DEVICE,weights_only=False)
|
| 55 |
if "model_state_dict" in ckpt:
|
| 56 |
model.load_state_dict(ckpt["model_state_dict"])
|
| 57 |
else:
|