Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -111,10 +111,11 @@ def infer(video_in,interpolation,fps_output):
|
|
111 |
interpolated_frames = do_interpolation(frame, next_frame,interpolation) # should return a list of 3 interpolated frames
|
112 |
break_interpolated_video = get_frames(interpolated_frames, "interpol",f"{idx}_")
|
113 |
print(break_interpolated_video[0])
|
114 |
-
for j, img in enumerate(break_interpolated_video[0][
|
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 |
print("frames " + str(idx) + " & " + str(idx+1) + "/" + str(n_frame) + ": done;")
|
119 |
print(f"CURRENT FRAMES: {result_frames}")
|
120 |
|
|
|
111 |
interpolated_frames = do_interpolation(frame, next_frame,interpolation) # should return a list of 3 interpolated frames
|
112 |
break_interpolated_video = get_frames(interpolated_frames, "interpol",f"{idx}_")
|
113 |
print(break_interpolated_video[0])
|
114 |
+
for j, img in enumerate(break_interpolated_video[0][0:len(break_interpolated_video[0])-1]):
|
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 |
+
result_frames.append(f"{frames_list[n_frame-1]}")
|
119 |
print("frames " + str(idx) + " & " + str(idx+1) + "/" + str(n_frame) + ": done;")
|
120 |
print(f"CURRENT FRAMES: {result_frames}")
|
121 |
|