Spaces:
Running
on
A10G
Running
on
A10G
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ examples = [
|
|
| 38 |
"motion_module.ckpt",
|
| 39 |
"Cherry blossoms transitioning from tightly closed buds to a peak state of bloom. The progression moves through stages of bud swelling, petal exposure, and gradual opening, culminating in a full and vibrant display of open blossoms.",
|
| 40 |
"worst quality, low quality, letterboxed",
|
| 41 |
-
512, 512, "
|
| 42 |
],
|
| 43 |
# 2-RCNZ
|
| 44 |
[
|
|
@@ -46,7 +46,7 @@ examples = [
|
|
| 46 |
"motion_module.ckpt",
|
| 47 |
"Time-lapse of a simple modern house's construction in a Minecraft virtual environment: beginning with an avatar laying a white foundation, progressing through wall erection and interior furnishing, to adding roof and exterior details, and completed with landscaping and a tall chimney.",
|
| 48 |
"worst quality, low quality, letterboxed",
|
| 49 |
-
512, 512, "
|
| 50 |
],
|
| 51 |
# 3-ToonYou
|
| 52 |
[
|
|
@@ -212,9 +212,9 @@ def ui():
|
|
| 212 |
gr.Markdown(
|
| 213 |
"""
|
| 214 |
<h2 align="center"> <a href="https://github.com/PKU-YuanGroup/MagicTime">MagicTime: Time-lapse Video Generation Models as Metamorphic Simulators</a></h2>
|
| 215 |
-
<h5
|
| 216 |
|
| 217 |
-
[GitHub](https://
|
| 218 |
"""
|
| 219 |
)
|
| 220 |
with gr.Row():
|
|
@@ -233,7 +233,7 @@ def ui():
|
|
| 233 |
width_slider = gr.Slider( label="Width", value=512, minimum=256, maximum=1024, step=64 )
|
| 234 |
height_slider = gr.Slider( label="Height", value=512, minimum=256, maximum=1024, step=64 )
|
| 235 |
with gr.Row():
|
| 236 |
-
seed_textbox = gr.Textbox( label="Seed", value=-1)
|
| 237 |
seed_button = gr.Button(value="\U0001F3B2", elem_classes="toolbutton")
|
| 238 |
seed_button.click(fn=lambda: gr.Textbox.update(value=random.randint(1, 1e16)), inputs=[], outputs=[seed_textbox])
|
| 239 |
|
|
@@ -247,7 +247,12 @@ def ui():
|
|
| 247 |
outputs = [result_video, json_config]
|
| 248 |
|
| 249 |
generate_button.click( fn=controller.magictime, inputs=inputs, outputs=outputs )
|
| 250 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 251 |
gr.Examples( fn=controller.magictime, examples=examples, inputs=inputs, outputs=outputs, cache_examples=True )
|
| 252 |
|
| 253 |
return demo
|
|
|
|
| 38 |
"motion_module.ckpt",
|
| 39 |
"Cherry blossoms transitioning from tightly closed buds to a peak state of bloom. The progression moves through stages of bud swelling, petal exposure, and gradual opening, culminating in a full and vibrant display of open blossoms.",
|
| 40 |
"worst quality, low quality, letterboxed",
|
| 41 |
+
512, 512, "1534851746"
|
| 42 |
],
|
| 43 |
# 2-RCNZ
|
| 44 |
[
|
|
|
|
| 46 |
"motion_module.ckpt",
|
| 47 |
"Time-lapse of a simple modern house's construction in a Minecraft virtual environment: beginning with an avatar laying a white foundation, progressing through wall erection and interior furnishing, to adding roof and exterior details, and completed with landscaping and a tall chimney.",
|
| 48 |
"worst quality, low quality, letterboxed",
|
| 49 |
+
512, 512, "3480796026"
|
| 50 |
],
|
| 51 |
# 3-ToonYou
|
| 52 |
[
|
|
|
|
| 212 |
gr.Markdown(
|
| 213 |
"""
|
| 214 |
<h2 align="center"> <a href="https://github.com/PKU-YuanGroup/MagicTime">MagicTime: Time-lapse Video Generation Models as Metamorphic Simulators</a></h2>
|
| 215 |
+
<h5 style="text-align:left;">If you like our project, please give us a star ⭐ on GitHub for the latest update.</h5>
|
| 216 |
|
| 217 |
+
[GitHub](https://github.com/PKU-YuanGroup/MagicTime) | [arXiv](https://arxiv.org/abs/2404.05014) | [Home Page](https://pku-yuangroup.github.io/MagicTime/) | [Dataset](https://drive.google.com/drive/folders/1WsomdkmSp3ql3ImcNsmzFuSQ9Qukuyr8?usp=sharing)
|
| 218 |
"""
|
| 219 |
)
|
| 220 |
with gr.Row():
|
|
|
|
| 233 |
width_slider = gr.Slider( label="Width", value=512, minimum=256, maximum=1024, step=64 )
|
| 234 |
height_slider = gr.Slider( label="Height", value=512, minimum=256, maximum=1024, step=64 )
|
| 235 |
with gr.Row():
|
| 236 |
+
seed_textbox = gr.Textbox( label="Seed (-1 means random)", value=-1)
|
| 237 |
seed_button = gr.Button(value="\U0001F3B2", elem_classes="toolbutton")
|
| 238 |
seed_button.click(fn=lambda: gr.Textbox.update(value=random.randint(1, 1e16)), inputs=[], outputs=[seed_textbox])
|
| 239 |
|
|
|
|
| 247 |
outputs = [result_video, json_config]
|
| 248 |
|
| 249 |
generate_button.click( fn=controller.magictime, inputs=inputs, outputs=outputs )
|
| 250 |
+
|
| 251 |
+
gr.Markdown(
|
| 252 |
+
"""
|
| 253 |
+
<h5 style="text-align:left;">Warning: It is worth noting that even if we use the same seed and prompt but we change a machine, the results will be different. If you find a better seed and prompt, please tell me in a GitHub issue.</h5>
|
| 254 |
+
"""
|
| 255 |
+
)
|
| 256 |
gr.Examples( fn=controller.magictime, examples=examples, inputs=inputs, outputs=outputs, cache_examples=True )
|
| 257 |
|
| 258 |
return demo
|