Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -115,10 +115,10 @@ def infer(video_in,interpolation,fps_output):
|
|
115 |
print(f"IMG:{img}")
|
116 |
os.rename(img, f"{frame}_to_{next_frame}_{j}.jpg")
|
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 |
-
|
122 |
final_vid = create_video(result_frames, fps_output, "interpolated")
|
123 |
|
124 |
files = final_vid
|
|
|
115 |
print(f"IMG:{img}")
|
116 |
os.rename(img, f"{frame}_to_{next_frame}_{j}.jpg")
|
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 |
|
124 |
files = final_vid
|