Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def yolov8_img_inference(
|
|
26 |
conf_threshold: gr.inputs.Slider = 0.25,
|
27 |
iou_threshold: gr.inputs.Slider = 0.45,
|
28 |
):
|
29 |
-
model = YOLO(
|
30 |
model.overrides['conf'] = conf_threshold
|
31 |
model.overrides['iou']= iou_threshold
|
32 |
model.overrides['agnostic_nms'] = False # NMS class-agnostic
|
|
|
26 |
conf_threshold: gr.inputs.Slider = 0.25,
|
27 |
iou_threshold: gr.inputs.Slider = 0.45,
|
28 |
):
|
29 |
+
model = YOLO(model_path)
|
30 |
model.overrides['conf'] = conf_threshold
|
31 |
model.overrides['iou']= iou_threshold
|
32 |
model.overrides['agnostic_nms'] = False # NMS class-agnostic
|