fffiloni commited on
Commit
cad3641
·
1 Parent(s): cdd5bef

Update inference.py

Browse files
Files changed (1) hide show
  1. inference.py +1 -2
inference.py CHANGED
@@ -120,8 +120,7 @@ if __name__ == "__main__":
120
  # Step 3. inference
121
 
122
  if args.is_long_video:
123
- import math
124
- window_size = int(math.sqrt(args.video_length))
125
  sample = pipe.generate_long_video(args.prompt + POS_PROMPT, video_length=args.video_length, frames=pil_annotation,
126
  num_inference_steps=50, smooth_steps=args.smoother_steps, window_size=window_size,
127
  generator=generator, guidance_scale=12.5, negative_prompt=NEG_PROMPT,
 
120
  # Step 3. inference
121
 
122
  if args.is_long_video:
123
+ window_size = int(np.sqrt(args.video_length))
 
124
  sample = pipe.generate_long_video(args.prompt + POS_PROMPT, video_length=args.video_length, frames=pil_annotation,
125
  num_inference_steps=50, smooth_steps=args.smoother_steps, window_size=window_size,
126
  generator=generator, guidance_scale=12.5, negative_prompt=NEG_PROMPT,