fffiloni commited on
Commit
8c5de78
1 Parent(s): a2e927b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -113,10 +113,12 @@ def infer(video_in):
113
  if idx < len(frames_list) - 1:
114
  next_frame = frames_list[idx+1]
115
  interpolated_frames = do_interpolation(frame, next_frame) # should return a list of 3 interpolated frames
116
- break_interpolated_video = get_frames(interpolated_frames)[0]
117
- for j, img in enumerate(break_interpolated_video):
 
 
118
  img = Image.open(img)
119
- img = Image.save(f"{frame}_to_{next_frame}_{j}")
120
  result_frames.append(img)
121
  print("frames " + str(idx) + " & " + str(idx+1) + "/" + str(n_frame) + ": done;")
122
 
 
113
  if idx < len(frames_list) - 1:
114
  next_frame = frames_list[idx+1]
115
  interpolated_frames = do_interpolation(frame, next_frame) # should return a list of 3 interpolated frames
116
+ break_interpolated_video = get_frames(interpolated_frames)
117
+ print(break_interpolated_video[0])
118
+ for j, img in enumerate(break_interpolated_video[0]):
119
+ print(f"IMG:{img}")
120
  img = Image.open(img)
121
+ img = Image.save(f"{frame}_to_{next_frame}_{j}.jpg")
122
  result_frames.append(img)
123
  print("frames " + str(idx) + " & " + str(idx+1) + "/" + str(n_frame) + ": done;")
124