brjathu commited on
Commit ·
025c216
1
Parent(s): 88994ba
Adding HF files
Browse files- .gitignore +1 -0
- app.py +2 -2
.gitignore
CHANGED
|
@@ -143,3 +143,4 @@ dmypy.json
|
|
| 143 |
.pyre/
|
| 144 |
/checkpoints/
|
| 145 |
# /data/
|
|
|
|
|
|
| 143 |
.pyre/
|
| 144 |
/checkpoints/
|
| 145 |
# /data/
|
| 146 |
+
assets/
|
app.py
CHANGED
|
@@ -141,11 +141,11 @@ with gr.Blocks(title="4DHumans", css=".gradio-container") as demo:
|
|
| 141 |
gr.HTML("""<br/>""")
|
| 142 |
|
| 143 |
with gr.Row():
|
| 144 |
-
threshold = gr.Slider(0, 1.0, value=0.
|
| 145 |
send_btn = gr.Button("Infer")
|
| 146 |
send_btn.click(fn=infer, inputs=[input_image, threshold], outputs=[output_image])
|
| 147 |
|
| 148 |
-
|
| 149 |
|
| 150 |
gr.HTML("""</ul>""")
|
| 151 |
|
|
|
|
| 141 |
gr.HTML("""<br/>""")
|
| 142 |
|
| 143 |
with gr.Row():
|
| 144 |
+
threshold = gr.Slider(0, 1.0, value=0.6, label='Detection Threshold')
|
| 145 |
send_btn = gr.Button("Infer")
|
| 146 |
send_btn.click(fn=infer, inputs=[input_image, threshold], outputs=[output_image])
|
| 147 |
|
| 148 |
+
gr.Examples([['assets/test1.png', 0.6], ['assets/test2.png', 0.5]], inputs=[input_image, threshold])
|
| 149 |
|
| 150 |
gr.HTML("""</ul>""")
|
| 151 |
|