aje6 commited on
Commit
adc055f
·
verified ·
1 Parent(s): 5c2da46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -207,10 +207,10 @@ import torchvision.transforms as T
207
  from ultralytics import YOLO
208
 
209
  # Load your model
210
- model = YOLO("Model_IV.pt")
211
  # model = torch.load("Model_IV.pt")
212
  # model.eval()
213
- checkpoint = torch.load("model.pt")
214
  model.load_state_dict(checkpoint) # Load the saved weights
215
  model.eval() # Set the model to evaluation mode
216
 
 
207
  from ultralytics import YOLO
208
 
209
  # Load your model
210
+ model = YOLO()
211
  # model = torch.load("Model_IV.pt")
212
  # model.eval()
213
+ checkpoint = torch.load("Model_IV.pt")
214
  model.load_state_dict(checkpoint) # Load the saved weights
215
  model.eval() # Set the model to evaluation mode
216