mennamostafa55555 commited on
Commit
c6157af
·
1 Parent(s): 95e0a6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ def yolov8_inference(
37
 
38
  model = YOLO("https://huggingface.co/spaces/devisionx/Fifth_model/blob/main/best_weigh.pt")
39
 
40
- results = model(image,conf=conf_threshold,iou=iou_threshold ,imgsz=360,half=True)[0]
41
  detections = sv.Detections.from_yolov8(results)
42
  annotated_image = annotatorbbox.annotate(scene=image, detections=detections)
43
  annotated_image = annotatormask.annotate(scene=annotated_image, detections=detections)
 
37
 
38
  model = YOLO("https://huggingface.co/spaces/devisionx/Fifth_model/blob/main/best_weigh.pt")
39
 
40
+ results = model(image,conf=conf_threshold,iou=iou_threshold ,imgsz=360)[0]
41
  detections = sv.Detections.from_yolov8(results)
42
  annotated_image = annotatorbbox.annotate(scene=image, detections=detections)
43
  annotated_image = annotatormask.annotate(scene=annotated_image, detections=detections)