kulkas2pintu commited on
Commit ·
465e9b6
1
Parent(s): 6373d9e
Upgrade to WAMU_v3 + default 4 steps (faster)
Browse files
app.py
CHANGED
|
@@ -258,7 +258,7 @@ SCHEDULER_MAP = {
|
|
| 258 |
}
|
| 259 |
|
| 260 |
pipe = WanImageToVideoPipeline.from_pretrained(
|
| 261 |
-
"TestOrganizationPleaseIgnore/
|
| 262 |
torch_dtype=torch.bfloat16,
|
| 263 |
).to('cuda')
|
| 264 |
original_scheduler = copy.deepcopy(pipe.scheduler)
|
|
@@ -582,7 +582,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=CSS, delete_cache=(3600, 10800)) as d
|
|
| 582 |
quality_slider = gr.Slider(minimum=1, maximum=10, step=1, value=6, label="Video Quality", info="If set to 10, the generated video may be too large and won't play in the Gradio preview.")
|
| 583 |
seed_input = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=42, interactive=True)
|
| 584 |
randomize_seed_checkbox = gr.Checkbox(label="Randomize seed", value=True, interactive=True)
|
| 585 |
-
steps_slider = gr.Slider(minimum=1, maximum=30, step=1, value=
|
| 586 |
guidance_scale_input = gr.Slider(minimum=0.0, maximum=10.0, step=0.5, value=1, label="Guidance Scale - high noise stage", info="Values above 1 increase GPU usage and may take longer to process.")
|
| 587 |
guidance_scale_2_input = gr.Slider(minimum=0.0, maximum=10.0, step=0.5, value=1, label="Guidance Scale 2 - low noise stage")
|
| 588 |
scheduler_dropdown = gr.Dropdown(
|
|
|
|
| 258 |
}
|
| 259 |
|
| 260 |
pipe = WanImageToVideoPipeline.from_pretrained(
|
| 261 |
+
"TestOrganizationPleaseIgnore/WAMU_v3_WAN2.2_I2V_LIGHTNING",
|
| 262 |
torch_dtype=torch.bfloat16,
|
| 263 |
).to('cuda')
|
| 264 |
original_scheduler = copy.deepcopy(pipe.scheduler)
|
|
|
|
| 582 |
quality_slider = gr.Slider(minimum=1, maximum=10, step=1, value=6, label="Video Quality", info="If set to 10, the generated video may be too large and won't play in the Gradio preview.")
|
| 583 |
seed_input = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=42, interactive=True)
|
| 584 |
randomize_seed_checkbox = gr.Checkbox(label="Randomize seed", value=True, interactive=True)
|
| 585 |
+
steps_slider = gr.Slider(minimum=1, maximum=30, step=1, value=4, label="Inference Steps", info="4 steps = fastest (Lightning default). Raise to 6-8 for slightly more detail.")
|
| 586 |
guidance_scale_input = gr.Slider(minimum=0.0, maximum=10.0, step=0.5, value=1, label="Guidance Scale - high noise stage", info="Values above 1 increase GPU usage and may take longer to process.")
|
| 587 |
guidance_scale_2_input = gr.Slider(minimum=0.0, maximum=10.0, step=0.5, value=1, label="Guidance Scale 2 - low noise stage")
|
| 588 |
scheduler_dropdown = gr.Dropdown(
|