Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -37,10 +37,10 @@ def yolov8_inference(
|
|
37 |
inputs = [
|
38 |
gr.Image(type="filepath", label="Input Image"),
|
39 |
gr.Dropdown(["yolov8n", "yolov8m", "yolov8l", "yolov8x"],
|
40 |
-
|
41 |
-
gr.Slider(minimum=320, maximum=1280,
|
42 |
-
gr.Slider(minimum=0.0, maximum=1.0,
|
43 |
-
gr.Slider(minimum=0.0, maximum=1.0,
|
44 |
]
|
45 |
|
46 |
outputs = gr.Image(type="filepath", label="Output Image")
|
|
|
37 |
inputs = [
|
38 |
gr.Image(type="filepath", label="Input Image"),
|
39 |
gr.Dropdown(["yolov8n", "yolov8m", "yolov8l", "yolov8x"],
|
40 |
+
value="yolov8m", label="Model"),
|
41 |
+
gr.Slider(minimum=320, maximum=1280, value=640, step=320, label="Image Size"),
|
42 |
+
gr.Slider(minimum=0.0, maximum=1.0, value=0.25, step=0.05, label="Confidence Threshold"),
|
43 |
+
gr.Slider(minimum=0.0, maximum=1.0, value=0.45, step=0.05, label="IOU Threshold"),
|
44 |
]
|
45 |
|
46 |
outputs = gr.Image(type="filepath", label="Output Image")
|