fffiloni commited on
Commit
8c0b1a1
1 Parent(s): 854b688

Update inference.py

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