Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,6 +32,8 @@ vae = AutoencoderKLWan.from_pretrained(model_id, subfolder="vae", torch_dtype=to
|
|
| 32 |
pipe = WanPipeline.from_pretrained(model_id, vae=vae, torch_dtype=torch.bfloat16)
|
| 33 |
flow_shift = 1.0 # 1.0 for image, 5.0 for 720P, 3.0 for 480P
|
| 34 |
|
|
|
|
|
|
|
| 35 |
# Configure DDIMScheduler with a beta schedule
|
| 36 |
pipe.scheduler = DDIMScheduler.from_config(
|
| 37 |
pipe.scheduler.config,
|
|
|
|
| 32 |
pipe = WanPipeline.from_pretrained(model_id, vae=vae, torch_dtype=torch.bfloat16)
|
| 33 |
flow_shift = 1.0 # 1.0 for image, 5.0 for 720P, 3.0 for 480P
|
| 34 |
|
| 35 |
+
# pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config, flow_shift=flow_shift)
|
| 36 |
+
|
| 37 |
# Configure DDIMScheduler with a beta schedule
|
| 38 |
pipe.scheduler = DDIMScheduler.from_config(
|
| 39 |
pipe.scheduler.config,
|