Spaces:
Sleeping
Sleeping
Anonymous
commited on
Commit
·
2afd1df
1
Parent(s):
9a6f281
add 512
Browse files
app.py
CHANGED
@@ -55,6 +55,7 @@ def infer(prompt, output_size, seed, num_frames, ddim_steps, unconditional_guida
|
|
55 |
model_1024.eval()
|
56 |
model = model_1024
|
57 |
fps = 28
|
|
|
58 |
# elif output_size == "256x256":
|
59 |
# width = 256
|
60 |
# height = 256
|
@@ -258,9 +259,11 @@ with gr.Blocks(css=css) as demo:
|
|
258 |
"""
|
259 |
<h1 style="text-align: center;">LongerCrafter(FreeNoise) Text-to-Video</h1>
|
260 |
<p style="text-align: center;">
|
261 |
-
Tuning-Free Longer Video Diffusion via Noise Rescheduling
|
262 |
</p>
|
263 |
-
|
|
|
|
|
264 |
"""
|
265 |
)
|
266 |
|
@@ -271,9 +274,9 @@ with gr.Blocks(css=css) as demo:
|
|
271 |
with gr.Row():
|
272 |
output_size = gr.Dropdown(["320x512", "576x1024"], value="320x512", label="Output Size", info="around 350s for 320x512, around 900s for 576x1024")
|
273 |
with gr.Row():
|
274 |
-
num_frames = gr.Slider(label='Frames (a multiple of 4)',
|
275 |
minimum=16,
|
276 |
-
maximum=
|
277 |
step=4,
|
278 |
value=32)
|
279 |
ddim_steps = gr.Slider(label='DDIM Steps',
|
@@ -299,7 +302,7 @@ with gr.Blocks(css=css) as demo:
|
|
299 |
step=1,
|
300 |
value=123)
|
301 |
|
302 |
-
submit_btn = gr.Button("Generate")
|
303 |
video_result = gr.Video(label="Video Output")
|
304 |
|
305 |
gr.Examples(examples=examples, inputs=[prompt_in, output_size, seed, num_frames, ddim_steps, unconditional_guidance_scale, save_fps])
|
|
|
55 |
model_1024.eval()
|
56 |
model = model_1024
|
57 |
fps = 28
|
58 |
+
num_frames = min(num_frames, 36)
|
59 |
# elif output_size == "256x256":
|
60 |
# width = 256
|
61 |
# height = 256
|
|
|
259 |
"""
|
260 |
<h1 style="text-align: center;">LongerCrafter(FreeNoise) Text-to-Video</h1>
|
261 |
<p style="text-align: center;">
|
262 |
+
Tuning-Free Longer Video Diffusion via Noise Rescheduling
|
263 |
</p>
|
264 |
+
<p style="text-align: center;">
|
265 |
+
[Arxiv](https://arxiv.org/abs/2310.15169) | [Project Page](http://haonanqiu.com/projects/FreeNoise.html) | [Github](https://github.com/arthur-qiu/LongerCrafter) <br />
|
266 |
+
</p>
|
267 |
"""
|
268 |
)
|
269 |
|
|
|
274 |
with gr.Row():
|
275 |
output_size = gr.Dropdown(["320x512", "576x1024"], value="320x512", label="Output Size", info="around 350s for 320x512, around 900s for 576x1024")
|
276 |
with gr.Row():
|
277 |
+
num_frames = gr.Slider(label='Frames (a multiple of 4), max 36 for 1024 model',
|
278 |
minimum=16,
|
279 |
+
maximum=64,
|
280 |
step=4,
|
281 |
value=32)
|
282 |
ddim_steps = gr.Slider(label='DDIM Steps',
|
|
|
302 |
step=1,
|
303 |
value=123)
|
304 |
|
305 |
+
submit_btn = gr.Button("Generate", variant='primary')
|
306 |
video_result = gr.Video(label="Video Output")
|
307 |
|
308 |
gr.Examples(examples=examples, inputs=[prompt_in, output_size, seed, num_frames, ddim_steps, unconditional_guidance_scale, save_fps])
|