aje6 commited on
Commit
ceba677
·
verified ·
1 Parent(s): 9d7795b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -189,7 +189,8 @@ import torch
189
  import cv2
190
 
191
  # Load the YOLOv8 model
192
- model = torch.hub.load('ultralytics/yolov8', 'Model_IV.pt', pretrained=True)
 
193
 
194
  def inference(img):
195
  results = model(img)
 
189
  import cv2
190
 
191
  # Load the YOLOv8 model
192
+ model = torch.hub.load('ultralytics/yolov8', 'yolov8s')
193
+ model.load_state_dict(torch.load('Model_IV'))
194
 
195
  def inference(img):
196
  results = model(img)