Update app.py
Browse files
app.py
CHANGED
|
@@ -66,7 +66,7 @@ def write_flo(flow, filename):
|
|
| 66 |
|
| 67 |
def warp_flow(img, flow, mul=1.):
|
| 68 |
#img = np.array(img.convert('RGB'))
|
| 69 |
-
|
| 70 |
h, w = flow.shape[:2]
|
| 71 |
flow = flow.copy()
|
| 72 |
flow[:, :, 0] += np.arange(w)
|
|
|
|
| 66 |
|
| 67 |
def warp_flow(img, flow, mul=1.):
|
| 68 |
#img = np.array(img.convert('RGB'))
|
| 69 |
+
flow = np.load(flow)
|
| 70 |
h, w = flow.shape[:2]
|
| 71 |
flow = flow.copy()
|
| 72 |
flow[:, :, 0] += np.arange(w)
|