MrJasper1987 commited on
Commit
73000f0
·
verified ·
1 Parent(s): eeea013

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -19,9 +19,9 @@ import aoti
19
 
20
  MODEL_ID = "Wan-AI/Wan2.2-I2V-A14B-Diffusers"
21
 
22
- MAX_DIM = 832
23
  MIN_DIM = 480
24
- SQUARE_DIM = 640
25
  MULTIPLE_OF = 16
26
 
27
  MAX_SEED = np.iinfo(np.int32).max
@@ -216,7 +216,7 @@ def generate_video(
216
  negative_prompt=negative_prompt,
217
  height=resized_image.height,
218
  width=resized_image.width,
219
- num_frames=240,
220
  guidance_scale=float(guidance_scale),
221
  guidance_scale_2=float(guidance_scale_2),
222
  num_inference_steps=int(steps),
 
19
 
20
  MODEL_ID = "Wan-AI/Wan2.2-I2V-A14B-Diffusers"
21
 
22
+ MAX_DIM = 640
23
  MIN_DIM = 480
24
+ SQUARE_DIM = 512
25
  MULTIPLE_OF = 16
26
 
27
  MAX_SEED = np.iinfo(np.int32).max
 
216
  negative_prompt=negative_prompt,
217
  height=resized_image.height,
218
  width=resized_image.width,
219
+ num_frames= 120,
220
  guidance_scale=float(guidance_scale),
221
  guidance_scale_2=float(guidance_scale_2),
222
  num_inference_steps=int(steps),