Spaces:
Runtime error
Runtime error
Commit
·
c313ec6
1
Parent(s):
b4278bd
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ def yolov8_inference(
|
|
| 30 |
model = YOLO(model_path)
|
| 31 |
model.conf = conf_threshold
|
| 32 |
model.iou = iou_threshold
|
| 33 |
-
results = model.predict(image, imgsz=image_size
|
| 34 |
object_prediction_list = []
|
| 35 |
for _, image_results in enumerate(results):
|
| 36 |
if len(image_results)!=0:
|
|
|
|
| 30 |
model = YOLO(model_path)
|
| 31 |
model.conf = conf_threshold
|
| 32 |
model.iou = iou_threshold
|
| 33 |
+
results = model.predict(image, imgsz=image_size)
|
| 34 |
object_prediction_list = []
|
| 35 |
for _, image_results in enumerate(results):
|
| 36 |
if len(image_results)!=0:
|