sshi commited on
Commit
b2cad71
β€’
1 Parent(s): 60390c6

Add example3.

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. app.py +2 -2
  3. 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πŸšΆβ€β™‚οΈ, 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"]],
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

  • SHA256: 8a991fc53f5f6fda1b49a49aed55afcb5a5e07adef60baadf1205f89363b56ce
  • Pointer size: 132 Bytes
  • Size of remote file: 2.24 MB