Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files
README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
---
|
2 |
-
title: Stable Video Diffusion
|
3 |
emoji: 📺
|
4 |
colorFrom: gray
|
5 |
colorTo: green
|
|
|
1 |
---
|
2 |
+
title: Stable Video Diffusion Upscale
|
3 |
emoji: 📺
|
4 |
colorFrom: gray
|
5 |
colorTo: green
|
app.py
CHANGED
@@ -44,15 +44,13 @@ with gr.Blocks() as demo:
|
|
44 |
run_button = gr.Button("Generate")
|
45 |
video = gr.Video()
|
46 |
with gr.Accordion("Advanced options", open=False):
|
47 |
-
upscaler_prompt = gr.Text(
|
48 |
-
label="Prompt for upscaler", show_label=False, max_lines=1, placeholder="Enter your prompt", container=False
|
49 |
-
)
|
50 |
seed = gr.Slider(label="Seed", minimum=0, maximum=1_000_000, step=1, value=0)
|
51 |
num_frames = gr.Slider(label="Number of frames", minimum=1, maximum=100, step=1, value=25)
|
52 |
motion_bucket_id = gr.Slider(label="Motion bucket id", minimum=1, maximum=255, step=1, value=127)
|
53 |
noise_aug_strength = gr.Slider(label="Noise strength", minimum=0, maximum=1, step=0.01, value=0.02)
|
54 |
-
fps = gr.Slider(label="Frames per second", minimum=5, maximum=30, step=1, value=
|
55 |
-
decode_chunk_size = gr.Slider(label="Decode chunk size", minimum=1, maximum=
|
56 |
run_button.click(
|
57 |
fn=infer,
|
58 |
inputs=[image, upscaler_prompt, num_frames, motion_bucket_id, noise_aug_strength, decode_chunk_size, fps, seed],
|
|
|
44 |
run_button = gr.Button("Generate")
|
45 |
video = gr.Video()
|
46 |
with gr.Accordion("Advanced options", open=False):
|
47 |
+
upscaler_prompt = gr.Text("Correct the motion blur in this image so it is more clear", label="Prompt for upscaler", show_label=False, max_lines=1, placeholder="Enter your prompt", container=False)
|
|
|
|
|
48 |
seed = gr.Slider(label="Seed", minimum=0, maximum=1_000_000, step=1, value=0)
|
49 |
num_frames = gr.Slider(label="Number of frames", minimum=1, maximum=100, step=1, value=25)
|
50 |
motion_bucket_id = gr.Slider(label="Motion bucket id", minimum=1, maximum=255, step=1, value=127)
|
51 |
noise_aug_strength = gr.Slider(label="Noise strength", minimum=0, maximum=1, step=0.01, value=0.02)
|
52 |
+
fps = gr.Slider(label="Frames per second", minimum=5, maximum=30, step=1, value=7)
|
53 |
+
decode_chunk_size = gr.Slider(label="Decode chunk size", minimum=1, maximum=25, step=1, value=7)
|
54 |
run_button.click(
|
55 |
fn=infer,
|
56 |
inputs=[image, upscaler_prompt, num_frames, motion_bucket_id, noise_aug_strength, decode_chunk_size, fps, seed],
|