ovi054 commited on
Commit
6088f2d
·
verified ·
1 Parent(s): e1856b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,6 +27,7 @@ transformer_2=WanTransformer3DModel.from_pretrained(model_id,
27
  pipe = WanPipeline.from_pretrained(model_id,
28
  transformer=transformer,
29
  transformer_2 = transformer_2,
 
30
  vae=vae, torch_dtype=torch.bfloat16)
31
  flow_shift = 2.0
32
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config, flow_shift=flow_shift)
@@ -161,7 +162,6 @@ def generate(prompt, negative_prompt, width, height, num_inference_steps, option
161
  num_inference_steps=num_inference_steps,
162
  guidance_scale=float(guidance_scale),
163
  guidance_scale_2=float(guidance_scale_2),
164
- boundary_ratio=0.3,
165
  )
166
  image = output.frames[0][0]
167
  image = (image * 255).astype(np.uint8)
 
27
  pipe = WanPipeline.from_pretrained(model_id,
28
  transformer=transformer,
29
  transformer_2 = transformer_2,
30
+ boundary_ratio = 0.3,
31
  vae=vae, torch_dtype=torch.bfloat16)
32
  flow_shift = 2.0
33
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config, flow_shift=flow_shift)
 
162
  num_inference_steps=num_inference_steps,
163
  guidance_scale=float(guidance_scale),
164
  guidance_scale_2=float(guidance_scale_2),
 
165
  )
166
  image = output.frames[0][0]
167
  image = (image * 255).astype(np.uint8)