Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def yolov8_inference(
|
|
62 |
inputs = [
|
63 |
gr.inputs.Image(type="filepath", label="Input Image"),
|
64 |
gr.inputs.Dropdown(["kadirnar/yolov8n-v8.0", "kadirnar/yolov8m-v8.0", "kadirnar/yolov8l-v8.0", "ultralyticsplus/yolov8s", "Snearec/detectorMalezasYolo8"],
|
65 |
-
default="
|
66 |
gr.inputs.Slider(minimum=320, maximum=1280, default=640, step=32, label="Image Size"),
|
67 |
gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.25, step=0.05, label="Confidence Threshold"),
|
68 |
gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.45, step=0.05, label="IOU Threshold"),
|
@@ -71,7 +71,6 @@ inputs = [
|
|
71 |
outputs = gr.outputs.Image(type="filepath", label="Output Image")
|
72 |
title = "Ultralytics YOLOv8: State-of-the-Art YOLO Models"
|
73 |
|
74 |
-
examples = [['highway.jpg', 'kadirnar/yolov8m-v8.0', 640, 0.25, 0.45], ['highway1.jpg', 'kadirnar/yolov8l-v8.0', 640, 0.25, 0.45], ['small-vehicles1.jpeg', 'kadirnar/yolov8x-v8.0', 1280, 0.25, 0.45]]
|
75 |
demo_app = gr.Interface(
|
76 |
fn=yolov8_inference,
|
77 |
inputs=inputs,
|
|
|
62 |
inputs = [
|
63 |
gr.inputs.Image(type="filepath", label="Input Image"),
|
64 |
gr.inputs.Dropdown(["kadirnar/yolov8n-v8.0", "kadirnar/yolov8m-v8.0", "kadirnar/yolov8l-v8.0", "ultralyticsplus/yolov8s", "Snearec/detectorMalezasYolo8"],
|
65 |
+
default="Snearec/detectorMalezasYolo8", label="Model"),
|
66 |
gr.inputs.Slider(minimum=320, maximum=1280, default=640, step=32, label="Image Size"),
|
67 |
gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.25, step=0.05, label="Confidence Threshold"),
|
68 |
gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.45, step=0.05, label="IOU Threshold"),
|
|
|
71 |
outputs = gr.outputs.Image(type="filepath", label="Output Image")
|
72 |
title = "Ultralytics YOLOv8: State-of-the-Art YOLO Models"
|
73 |
|
|
|
74 |
demo_app = gr.Interface(
|
75 |
fn=yolov8_inference,
|
76 |
inputs=inputs,
|