Update app.py
Browse files
app.py
CHANGED
@@ -226,7 +226,7 @@ def infer():
|
|
226 |
# print('flow stats mul', flow.max(), flow.min(), flow.mean())
|
227 |
# res = cv2.remap(img, flow, None, cv2.INTER_LINEAR)
|
228 |
res = cv2.remap(frame1pil, numpy_array_flow, None, cv2.INTER_LANCZOS4)
|
229 |
-
|
230 |
return "done", "predicted_flow.jpg", ["flofile.flo"], 'frame_input.jpg'
|
231 |
####################################
|
232 |
# Bonus: Creating GIFs of predicted flows
|
|
|
226 |
# print('flow stats mul', flow.max(), flow.min(), flow.mean())
|
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 |
return "done", "predicted_flow.jpg", ["flofile.flo"], 'frame_input.jpg'
|
231 |
####################################
|
232 |
# Bonus: Creating GIFs of predicted flows
|