sanpdy commited on
Commit
3d424a0
·
1 Parent(s): 2057317

Fixed cpu mapping error

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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