Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ def warp_image(im, flow):
|
|
65 |
h, w = flow.shape[:2]
|
66 |
flow[:,:,0] += np.arange(w)
|
67 |
flow[:,:,1] += np.arange(h)[:,np.newaxis]
|
68 |
-
prevImg = cv2.remap(im, flow, None,
|
69 |
|
70 |
def infer():
|
71 |
video_url = "https://download.pytorch.org/tutorial/pexelscom_pavel_danilyuk_basketball_hd.mp4"
|
|
|
65 |
h, w = flow.shape[:2]
|
66 |
flow[:,:,0] += np.arange(w)
|
67 |
flow[:,:,1] += np.arange(h)[:,np.newaxis]
|
68 |
+
prevImg = cv2.remap(im, flow, None, cv2.INTER_LINEAR)
|
69 |
|
70 |
def infer():
|
71 |
video_url = "https://download.pytorch.org/tutorial/pexelscom_pavel_danilyuk_basketball_hd.mp4"
|