Update app.py
Browse files
app.py
CHANGED
@@ -60,6 +60,8 @@ def write_flo(flow, filename):
|
|
60 |
|
61 |
#warp using scipy
|
62 |
def warp_image(im, flow):
|
|
|
|
|
63 |
print(f"IMAGE: {im}")
|
64 |
im = im[0].cpu().data.numpy()
|
65 |
im = im.astype(np.float32)
|
|
|
60 |
|
61 |
#warp using scipy
|
62 |
def warp_image(im, flow):
|
63 |
+
im = [(img1 + 1) / 2 for img1 in im]
|
64 |
+
|
65 |
print(f"IMAGE: {im}")
|
66 |
im = im[0].cpu().data.numpy()
|
67 |
im = im.astype(np.float32)
|