fffiloni commited on
Commit
6f824bf
·
1 Parent(s): ea75628

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -227,7 +227,6 @@ def infer():
227
  # res = cv2.remap(img, flow, None, cv2.INTER_LINEAR)
228
  res = cv2.remap(frame1pil, numpy_array_flow, None, cv2.INTER_LANCZOS4)
229
  print(res)
230
- res = Image.fromarray(res)
231
  res.save('wraped.jpg')
232
  return "done", "predicted_flow.jpg", ["flofile.flo"], 'frame_input.jpg', 'wraped.jpg'
233
  ####################################
 
227
  # res = cv2.remap(img, flow, None, cv2.INTER_LINEAR)
228
  res = cv2.remap(frame1pil, numpy_array_flow, None, cv2.INTER_LANCZOS4)
229
  print(res)
 
230
  res.save('wraped.jpg')
231
  return "done", "predicted_flow.jpg", ["flofile.flo"], 'frame_input.jpg', 'wraped.jpg'
232
  ####################################