Spaces:
Runtime error
Runtime error
neverix
commited on
Commit
·
50644d6
1
Parent(s):
bedb68d
Halfway working demo
Browse files- .gitignore +2 -0
- app.py +8 -2
- poses.zip → poses_template.zip +0 -0
.gitignore
CHANGED
@@ -6,6 +6,8 @@ character_sheet/
|
|
6 |
# weights/
|
7 |
*.mp4
|
8 |
*.webm
|
|
|
|
|
9 |
x264/
|
10 |
filelist.txt
|
11 |
complex_infer.sh
|
|
|
6 |
# weights/
|
7 |
*.mp4
|
8 |
*.webm
|
9 |
+
poses.zip
|
10 |
+
gradio_cached_examples/
|
11 |
x264/
|
12 |
filelist.txt
|
13 |
complex_infer.sh
|
app.py
CHANGED
@@ -34,8 +34,9 @@ with gr.Blocks() as ui:
|
|
34 |
gr.Markdown("Unofficial demo for CoNR.")
|
35 |
|
36 |
with gr.Row():
|
37 |
-
with gr.Column():
|
38 |
-
gr.Markdown("## Parse video")
|
|
|
39 |
with gr.Column():
|
40 |
gr.Markdown("## Animate character")
|
41 |
gr.Markdown("Character sheet")
|
@@ -47,6 +48,11 @@ with gr.Blocks() as ui:
|
|
47 |
run = gr.Button("Run")
|
48 |
video = gr.Video()
|
49 |
run.click(fn=conr_fn, inputs=[character_sheets, pose_video], outputs=video)
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
# ui.launch()
|
52 |
demo = ui
|
|
|
34 |
gr.Markdown("Unofficial demo for CoNR.")
|
35 |
|
36 |
with gr.Row():
|
37 |
+
# with gr.Column():
|
38 |
+
# gr.Markdown("## Parse video")
|
39 |
+
# gr.Markdown("TBD")
|
40 |
with gr.Column():
|
41 |
gr.Markdown("## Animate character")
|
42 |
gr.Markdown("Character sheet")
|
|
|
48 |
run = gr.Button("Run")
|
49 |
video = gr.Video()
|
50 |
run.click(fn=conr_fn, inputs=[character_sheets, pose_video], outputs=video)
|
51 |
+
|
52 |
+
gr.Markdown("## Examples")
|
53 |
+
sheets = "character_sheet_ponytail_example"
|
54 |
+
gr.Examples(fn=conr_fn, inputs=[character_sheets, pose_video], outputs=video,
|
55 |
+
examples=[[[os.path.join(sheets, x) for x in os.listdir(sheets)], "poses_template.zip"]], cache_examples=True, examples_per_page=1)
|
56 |
|
57 |
# ui.launch()
|
58 |
demo = ui
|
poses.zip → poses_template.zip
RENAMED
File without changes
|