JSON
Browse files- main_noweb.py +2 -1
main_noweb.py
CHANGED
|
@@ -164,6 +164,7 @@ def pose2d(video, kpt_threshold):
|
|
| 164 |
|
| 165 |
out_file = glob.glob(os.path.join(add_dir, "*.mp4")) #+ glob.glob(os.path.join(vis_out_dir, "*.webm"))
|
| 166 |
kpoints = glob.glob(os.path.join(add_dir, "*.json"))
|
|
|
|
| 167 |
|
| 168 |
return "".join(out_file), "".join(kpoints)
|
| 169 |
|
|
@@ -214,7 +215,7 @@ with block:
|
|
| 214 |
video_output2 = gr.PlayableVideo(height=512, label = "Estimate human 3d poses", show_label=True)
|
| 215 |
video_output3 = gr.PlayableVideo(height=512, label = "Estimate human hand poses", show_label=True)
|
| 216 |
video_output4 = gr.Video(height=512, label = "Detection and tracking", show_label=True, format="mp4")
|
| 217 |
-
jsonoutput = gr.
|
| 218 |
|
| 219 |
|
| 220 |
with gr.Tab("General information"):
|
|
|
|
| 164 |
|
| 165 |
out_file = glob.glob(os.path.join(add_dir, "*.mp4")) #+ glob.glob(os.path.join(vis_out_dir, "*.webm"))
|
| 166 |
kpoints = glob.glob(os.path.join(add_dir, "*.json"))
|
| 167 |
+
print(kpoints)
|
| 168 |
|
| 169 |
return "".join(out_file), "".join(kpoints)
|
| 170 |
|
|
|
|
| 215 |
video_output2 = gr.PlayableVideo(height=512, label = "Estimate human 3d poses", show_label=True)
|
| 216 |
video_output3 = gr.PlayableVideo(height=512, label = "Estimate human hand poses", show_label=True)
|
| 217 |
video_output4 = gr.Video(height=512, label = "Detection and tracking", show_label=True, format="mp4")
|
| 218 |
+
jsonoutput = gr.File(file_types=".json")
|
| 219 |
|
| 220 |
|
| 221 |
with gr.Tab("General information"):
|