Update app.py
Browse files
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 |
####################################
|