Spaces:
Sleeping
Sleeping
Fixed cpu mapping error
Browse files
app.py
CHANGED
|
@@ -75,7 +75,7 @@ print(f"Using device: {device}")
|
|
| 75 |
#yolo = YOLO("/home/sankalp/yolo_flake_detection/yolo_runs/yolo11l_flake_runs/weights/best.pt")
|
| 76 |
|
| 77 |
yolo = YOLO("models/uark_detector_v3.pt")
|
| 78 |
-
torch.load("models/flake_classifier_5layer.pth")
|
| 79 |
ckpt_path = "models/flake_classifier_5layer.pth"
|
| 80 |
ckpt = torch.load(ckpt_path, map_location=device)
|
| 81 |
|
|
|
|
| 75 |
#yolo = YOLO("/home/sankalp/yolo_flake_detection/yolo_runs/yolo11l_flake_runs/weights/best.pt")
|
| 76 |
|
| 77 |
yolo = YOLO("models/uark_detector_v3.pt")
|
| 78 |
+
torch.load("models/flake_classifier_5layer.pth",map_location=torch.device("cpu"))
|
| 79 |
ckpt_path = "models/flake_classifier_5layer.pth"
|
| 80 |
ckpt = torch.load(ckpt_path, map_location=device)
|
| 81 |
|