Mar2Ding commited on
Commit
7254f24
1 Parent(s): e10e859

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -412,8 +412,8 @@ def propagate_to_all(video_in, checkpoint, stored_inference_state, stored_frame_
412
  elif vis_frame_type == "render":
413
  # Create a video clip from the image sequence
414
  original_fps = get_video_fps(video_in)
415
- sampled_images = sparse_sampling(jpeg_images, original_fps, target_fps=6)
416
- clip = ImageSequenceClip(sampled_images, fps=6)
417
  # clip = ImageSequenceClip(jpeg_images, fps=fps)
418
  # Write the result to a file
419
  final_vid_output_path = "output_video.mp4"
 
412
  elif vis_frame_type == "render":
413
  # Create a video clip from the image sequence
414
  original_fps = get_video_fps(video_in)
415
+ # sampled_images = sparse_sampling(jpeg_images, original_fps, target_fps=6)
416
+ clip = ImageSequenceClip(jpeg_images, fps=original_fps//6)
417
  # clip = ImageSequenceClip(jpeg_images, fps=fps)
418
  # Write the result to a file
419
  final_vid_output_path = "output_video.mp4"