Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,7 @@ def warp_flow(img, flow, mul=1.):
|
|
| 75 |
flow[:, :, 1] + np.arange(h)[:, np.newaxis]
|
| 76 |
# print('flow stats', flow.max(), flow.min(), flow.mean())
|
| 77 |
# print(flow)
|
| 78 |
-
flow*
|
| 79 |
# print('flow stats mul', flow.max(), flow.min(), flow.mean())
|
| 80 |
# res = cv2.remap(img, flow, None, cv2.INTER_LINEAR)
|
| 81 |
res = cv2.remap(img, flow, None, cv2.INTER_LANCZOS4)
|
|
|
|
| 75 |
flow[:, :, 1] + np.arange(h)[:, np.newaxis]
|
| 76 |
# print('flow stats', flow.max(), flow.min(), flow.mean())
|
| 77 |
# print(flow)
|
| 78 |
+
flow*mul
|
| 79 |
# print('flow stats mul', flow.max(), flow.min(), flow.mean())
|
| 80 |
# res = cv2.remap(img, flow, None, cv2.INTER_LINEAR)
|
| 81 |
res = cv2.remap(img, flow, None, cv2.INTER_LANCZOS4)
|