Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ model = YOLOv10(MODEL_PATH)
|
|
14 |
box_annotator = sv.BoxAnnotator()
|
15 |
|
16 |
@spaces.GPU(duration=200)
|
17 |
-
def
|
18 |
model_path = download_models(model_id)
|
19 |
results = model(source=image, imgsz=image_size, iou=iou_threshold, conf=conf_threshold, verbose=False)[0]
|
20 |
detections = sv.Detections.from_ultralytics(results)
|
|
|
14 |
box_annotator = sv.BoxAnnotator()
|
15 |
|
16 |
@spaces.GPU(duration=200)
|
17 |
+
def yolov10_inference(image, model_id, image_size, conf_threshold, iou_threshold):
|
18 |
model_path = download_models(model_id)
|
19 |
results = model(source=image, imgsz=image_size, iou=iou_threshold, conf=conf_threshold, verbose=False)[0]
|
20 |
detections = sv.Detections.from_ultralytics(results)
|