Spaces:
Runtime error
Runtime error
Commit
•
90cbf36
1
Parent(s):
045d2e0
added examples and other changes
Browse files- .gitattributes +3 -0
- app.py +11 -4
- examples/0014.png +3 -0
- examples/0055.png +3 -0
- examples/0083.png +3 -0
.gitattributes
CHANGED
@@ -32,3 +32,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
+
examples/0014.png filter=lfs diff=lfs merge=lfs -text
|
36 |
+
examples/0055.png filter=lfs diff=lfs merge=lfs -text
|
37 |
+
examples/0083.png filter=lfs diff=lfs merge=lfs -text
|
app.py
CHANGED
@@ -45,19 +45,26 @@ def yolov8_inference(
|
|
45 |
|
46 |
inputs = [
|
47 |
"image",
|
48 |
-
Dropdown(choices=["yolo/runs/detect/train10/weights/best.pt"],
|
49 |
-
Slider(minimum=320, maximum=1280, step=32, label="Image Size"),
|
50 |
-
Slider(minimum=0.0, maximum=1.0, step=0.05, label="Confidence Threshold"),
|
51 |
-
Slider(minimum=0.0, maximum=1.0, step=0.05, label="IOU Threshold"),
|
52 |
]
|
53 |
|
54 |
title = "Smartathon Pothole Challenge"
|
55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
iface = gr.Interface(
|
57 |
fn=yolov8_inference,
|
58 |
inputs=inputs,
|
59 |
outputs="image",
|
60 |
title=title,
|
|
|
61 |
theme="default",
|
62 |
)
|
63 |
iface.launch(debug=True)
|
|
|
45 |
|
46 |
inputs = [
|
47 |
"image",
|
48 |
+
Dropdown(label="Model", choices=["yolo/runs/detect/train10/weights/best.pt"], value="yolo/runs/detect/train10/weights/best.pt", visible=False),
|
49 |
+
Slider(minimum=320, maximum=1280, step=32, value=640, label="Image Size"),
|
50 |
+
Slider(minimum=0.0, maximum=1.0, step=0.05, value=0.45, label="Confidence Threshold"),
|
51 |
+
Slider(minimum=0.0, maximum=1.0, step=0.05, value=0.25, label="IOU Threshold"),
|
52 |
]
|
53 |
|
54 |
title = "Smartathon Pothole Challenge"
|
55 |
|
56 |
+
examples = [
|
57 |
+
["examples/0014.png", "yolo/runs/detect/train10/weights/best.pt", 640, 0.45, 0.25],
|
58 |
+
["examples/0055.png", "yolo/runs/detect/train10/weights/best.pt", 640, 0.45, 0.25],
|
59 |
+
["examples/0083.png", "yolo/runs/detect/train10/weights/best.pt", 640, 0.45, 0.25],
|
60 |
+
]
|
61 |
+
|
62 |
iface = gr.Interface(
|
63 |
fn=yolov8_inference,
|
64 |
inputs=inputs,
|
65 |
outputs="image",
|
66 |
title=title,
|
67 |
+
examples=examples,
|
68 |
theme="default",
|
69 |
)
|
70 |
iface.launch(debug=True)
|
examples/0014.png
ADDED
![]() |
Git LFS Details
|
examples/0055.png
ADDED
![]() |
Git LFS Details
|
examples/0083.png
ADDED
![]() |
Git LFS Details
|