Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,7 +55,7 @@ SCHEDULER_MAP = {
|
|
| 55 |
}
|
| 56 |
|
| 57 |
pipe = WanImageToVideoPipeline.from_pretrained(
|
| 58 |
-
"TestOrganizationPleaseIgnore/WAMU_v2_WAN2.
|
| 59 |
torch_dtype=torch.bfloat16,
|
| 60 |
).to('cuda')
|
| 61 |
original_scheduler = copy.deepcopy(pipe.scheduler)
|
|
@@ -299,10 +299,10 @@ def generate_video(
|
|
| 299 |
return video_path, video_path, current_seed
|
| 300 |
|
| 301 |
|
| 302 |
-
with gr.Blocks() as demo:
|
| 303 |
-
gr.Markdown("# WAMU - Wan 2.2 I2V (14B)")
|
| 304 |
gr.Markdown("## ℹ️ **A Note on Performance:** This version prioritizes a straightforward setup over maximum speed, so performance may vary.")
|
| 305 |
-
gr.Markdown("run Wan 2.2 in just 4-8 steps, fp8 quantization & AoT compilation - compatible with 🧨 diffusers and ZeroGPU
|
| 306 |
with gr.Row():
|
| 307 |
with gr.Column():
|
| 308 |
input_image_component = gr.Image(type="pil", label="Input Image")
|
|
@@ -341,4 +341,8 @@ with gr.Blocks() as demo:
|
|
| 341 |
|
| 342 |
|
| 343 |
if __name__ == "__main__":
|
| 344 |
-
demo.queue().launch(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
}
|
| 56 |
|
| 57 |
pipe = WanImageToVideoPipeline.from_pretrained(
|
| 58 |
+
"TestOrganizationPleaseIgnore/WAMU_v2_WAN2.2_I2V_LIGHTNING",
|
| 59 |
torch_dtype=torch.bfloat16,
|
| 60 |
).to('cuda')
|
| 61 |
original_scheduler = copy.deepcopy(pipe.scheduler)
|
|
|
|
| 299 |
return video_path, video_path, current_seed
|
| 300 |
|
| 301 |
|
| 302 |
+
with gr.Blocks(theme=gr.themes.Soft(), delete_cache=(12800, 12800)) as demo:
|
| 303 |
+
gr.Markdown("# WAMU V2 - Wan 2.2 I2V (14B) 🐢")
|
| 304 |
gr.Markdown("## ℹ️ **A Note on Performance:** This version prioritizes a straightforward setup over maximum speed, so performance may vary.")
|
| 305 |
+
gr.Markdown("run Wan 2.2 in just 4-8 steps, fp8 quantization & AoT compilation - compatible with 🧨 diffusers and ZeroGPU")
|
| 306 |
with gr.Row():
|
| 307 |
with gr.Column():
|
| 308 |
input_image_component = gr.Image(type="pil", label="Input Image")
|
|
|
|
| 341 |
|
| 342 |
|
| 343 |
if __name__ == "__main__":
|
| 344 |
+
demo.queue().launch(
|
| 345 |
+
mcp_server=True,
|
| 346 |
+
ssr_mode=False,
|
| 347 |
+
show_error=True,
|
| 348 |
+
)
|