SamDaLamb commited on
Commit
c1b84ba
·
verified ·
1 Parent(s): 916d087

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -24,7 +24,8 @@ from models.common import DetectMultiBackend
24
 
25
  weights_path = "./last.pt"
26
  device = torch.device("cpu") # Correctly define the device
27
- model = DetectMultiBackend(weights_path, device=device) # Load YOLOv5 model correctly
 
28
  model.eval()
29
 
30
  # model_path = "./last.pt"
 
24
 
25
  weights_path = "./last.pt"
26
  device = torch.device("cpu") # Correctly define the device
27
+ model = torch.jit.load(weights_path)
28
+ # model.eval() # Load YOLOv5 model correctly
29
  model.eval()
30
 
31
  # model_path = "./last.pt"