fffiloni commited on
Commit
c4cbf7d
·
1 Parent(s): 68a90a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -141,10 +141,11 @@ def run_inference(prompt, video_path, condition, video_length, seed, steps):
141
  # Get FPS of original video input
142
  target_fps = get_video_dimension(video_path)[2]
143
  if target_fps > 12 :
144
- print(f"FPS is too high")
145
  video_length = int((12 * video_length) / target_fps)
 
146
  target_fps = 12
147
- print(f"INPUT FPS: {target_fps}")
148
 
149
  # Count total frames according to fps
150
  total_frames = get_video_dimension(video_path)[3]
 
141
  # Get FPS of original video input
142
  target_fps = get_video_dimension(video_path)[2]
143
  if target_fps > 12 :
144
+ print(f"FPS is too high: {target_fps}")
145
  video_length = int((12 * video_length) / target_fps)
146
+
147
  target_fps = 12
148
+ print(f"NEW INPUT FPS: {target_fps}, NEW FPS: {video_length}")
149
 
150
  # Count total frames according to fps
151
  total_frames = get_video_dimension(video_path)[3]