Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,6 @@ category_dict = {
|
|
26 |
|
27 |
@spaces.GPU(duration=200)
|
28 |
def yolov10_inference(image, model_id, image_size, conf_threshold, iou_threshold):
|
29 |
-
model_path = download_models(model_id)
|
30 |
model = YOLOv10.from_pretrained(f"kadirnar/{model_id}")
|
31 |
results = model(source=image, imgsz=image_size, iou=iou_threshold, conf=conf_threshold, verbose=False)[0]
|
32 |
detections = sv.Detections.from_ultralytics(results)
|
|
|
26 |
|
27 |
@spaces.GPU(duration=200)
|
28 |
def yolov10_inference(image, model_id, image_size, conf_threshold, iou_threshold):
|
|
|
29 |
model = YOLOv10.from_pretrained(f"kadirnar/{model_id}")
|
30 |
results = model(source=image, imgsz=image_size, iou=iou_threshold, conf=conf_threshold, verbose=False)[0]
|
31 |
detections = sv.Detections.from_ultralytics(results)
|