Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -276,10 +276,12 @@ def generate_video(
|
|
276 |
width=downscaled_width,
|
277 |
height=downscaled_height,
|
278 |
num_frames=num_frames,
|
279 |
-
|
280 |
decode_timestep=0.05,
|
281 |
decode_noise_scale=0.025,
|
|
|
282 |
guidance_scale=guidance_scale,
|
|
|
283 |
generator=torch.Generator().manual_seed(seed),
|
284 |
output_type="latent",
|
285 |
).frames
|
@@ -300,13 +302,14 @@ def generate_video(
|
|
300 |
width=upscaled_width,
|
301 |
height=upscaled_height,
|
302 |
num_frames=num_frames,
|
303 |
-
denoise_strength=0.4
|
304 |
-
|
305 |
latents=upscaled_latents,
|
306 |
-
decode_timestep
|
|
|
|
|
307 |
guidance_scale=guidance_scale,
|
308 |
-
|
309 |
-
image_cond_noise_scale=0.025,
|
310 |
generator=torch.Generator(device="cuda").manual_seed(seed),
|
311 |
output_type="np",
|
312 |
).frames[0]
|
@@ -402,7 +405,8 @@ with gr.Blocks(theme=gr.themes.Ocean(font=[gr.themes.GoogleFont("Lexend Deca"),
|
|
402 |
minimum=5,
|
403 |
maximum=10,
|
404 |
step=1,
|
405 |
-
value=7
|
|
|
406 |
)
|
407 |
|
408 |
with gr.Row():
|
@@ -411,7 +415,7 @@ with gr.Blocks(theme=gr.themes.Ocean(font=[gr.themes.GoogleFont("Lexend Deca"),
|
|
411 |
minimum=1.0,
|
412 |
maximum=5.0,
|
413 |
step=0.1,
|
414 |
-
value=1.0
|
415 |
)
|
416 |
|
417 |
with gr.Row():
|
|
|
276 |
width=downscaled_width,
|
277 |
height=downscaled_height,
|
278 |
num_frames=num_frames,
|
279 |
+
timesteps=[1000, 993, 987, 981, 975, 909, 725, 0.03],
|
280 |
decode_timestep=0.05,
|
281 |
decode_noise_scale=0.025,
|
282 |
+
image_cond_noise_scale=0.0,
|
283 |
guidance_scale=guidance_scale,
|
284 |
+
guidance_rescale=0.7,
|
285 |
generator=torch.Generator().manual_seed(seed),
|
286 |
output_type="latent",
|
287 |
).frames
|
|
|
302 |
width=upscaled_width,
|
303 |
height=upscaled_height,
|
304 |
num_frames=num_frames,
|
305 |
+
denoise_strength=0.999, # Effectively, 4 inference steps out of 5
|
306 |
+
timesteps=[1000, 909, 725, 421, 0],
|
307 |
latents=upscaled_latents,
|
308 |
+
decode_timestep=0.05,
|
309 |
+
decode_noise_scale=0.025,
|
310 |
+
image_cond_noise_scale=0.0,
|
311 |
guidance_scale=guidance_scale,
|
312 |
+
guidance_rescale=0.7,
|
|
|
313 |
generator=torch.Generator(device="cuda").manual_seed(seed),
|
314 |
output_type="np",
|
315 |
).frames[0]
|
|
|
405 |
minimum=5,
|
406 |
maximum=10,
|
407 |
step=1,
|
408 |
+
value=7,
|
409 |
+
visible=False
|
410 |
)
|
411 |
|
412 |
with gr.Row():
|
|
|
415 |
minimum=1.0,
|
416 |
maximum=5.0,
|
417 |
step=0.1,
|
418 |
+
value=1.0,
|
419 |
)
|
420 |
|
421 |
with gr.Row():
|