Spaces:
Runtime error
Runtime error
sshi
commited on
Commit
β’
b2cad71
1
Parent(s):
60390c6
Add example3.
Browse files- .gitattributes +1 -0
- app.py +2 -2
- imgs/example3.png +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* 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 |
*.ipynb 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 |
*.ipynb filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
app.py
CHANGED
@@ -143,14 +143,14 @@ def detect(img):
|
|
143 |
|
144 |
|
145 |
description = "Welcome to this space! π€this is a traffic object detector based on <a href='https://huggingface.co/docs/transformers/model_doc/yolos' style='text-decoration: underline' target='_blank'>YOLOS</a>. \n\n" + \
|
146 |
-
"The model can detect following targets: person
|
147 |
|
148 |
|
149 |
interface = gr.Interface(
|
150 |
fn=detect,
|
151 |
inputs=[gr.Image(type="pil")],
|
152 |
outputs=gr.Image(type="pil"),
|
153 |
-
examples=[["./imgs/example1.jpg"], ["./imgs/example2.jpg"]],
|
154 |
title="YOLOS for traffic object detection",
|
155 |
description=description)
|
156 |
|
|
|
143 |
|
144 |
|
145 |
description = "Welcome to this space! π€this is a traffic object detector based on <a href='https://huggingface.co/docs/transformers/model_doc/yolos' style='text-decoration: underline' target='_blank'>YOLOS</a>. \n\n" + \
|
146 |
+
"The model can detect following targets: πΆββοΈperson, π΄ββοΈrider, πcar, πbus, πtruck, π²bike, ποΈmotor, π¦traffic light, βtraffic sign, πtrain."
|
147 |
|
148 |
|
149 |
interface = gr.Interface(
|
150 |
fn=detect,
|
151 |
inputs=[gr.Image(type="pil")],
|
152 |
outputs=gr.Image(type="pil"),
|
153 |
+
examples=[["./imgs/example1.jpg"], ["./imgs/example2.jpg"], ["./imgs/example3.png"]],
|
154 |
title="YOLOS for traffic object detection",
|
155 |
description=description)
|
156 |
|
imgs/example3.png
ADDED
Git LFS Details
|