fffiloni commited on
Commit
ad6513c
1 Parent(s): 3f46759

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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][1: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
  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