fffiloni commited on
Commit
6b8df47
·
1 Parent(s): 3b52f93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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*=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)
 
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)