Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -91,6 +91,7 @@ def infer(video_in,interpolation,fps_output):
|
|
91 |
break_vid = get_frames(video_in, "vid_input_frame", "origin")
|
92 |
frames_list= break_vid[0]
|
93 |
fps = break_vid[1]
|
|
|
94 |
n_frame = int(4*fps) #limited to 4 seconds
|
95 |
#n_frame = len(frames_list)
|
96 |
|
@@ -117,7 +118,7 @@ def infer(video_in,interpolation,fps_output):
|
|
117 |
result_frames.append(f"{frame}_to_{next_frame}_{j}.jpg")
|
118 |
|
119 |
print("frames " + str(idx) + " & " + str(idx+1) + "/" + str(n_frame) + ": done;")
|
120 |
-
print(f"CURRENT FRAMES: {result_frames}")
|
121 |
result_frames.append(f"{frames_list[n_frame-1]}")
|
122 |
final_vid = create_video(result_frames, fps_output, "interpolated")
|
123 |
|
|
|
91 |
break_vid = get_frames(video_in, "vid_input_frame", "origin")
|
92 |
frames_list= break_vid[0]
|
93 |
fps = break_vid[1]
|
94 |
+
print(f"ORIGIN FPS: {fps}")
|
95 |
n_frame = int(4*fps) #limited to 4 seconds
|
96 |
#n_frame = len(frames_list)
|
97 |
|
|
|
118 |
result_frames.append(f"{frame}_to_{next_frame}_{j}.jpg")
|
119 |
|
120 |
print("frames " + str(idx) + " & " + str(idx+1) + "/" + str(n_frame) + ": done;")
|
121 |
+
#print(f"CURRENT FRAMES: {result_frames}")
|
122 |
result_frames.append(f"{frames_list[n_frame-1]}")
|
123 |
final_vid = create_video(result_frames, fps_output, "interpolated")
|
124 |
|