Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ def get_warp_res(fname_image, fname_flow, fname_output='warped.png'):
|
|
104 |
print(f"FNAME IMAGE: {fname_image}")
|
105 |
im2 = imread(fname_image)
|
106 |
print(f"FNAME IMAGE READED: {im2}")
|
107 |
-
flow = fname_flow
|
108 |
im_warped, _ = warpImage(im2, flow[:, :, 0], flow[:, :, 1])
|
109 |
imwrite(fname_output, im_warped)
|
110 |
|
|
|
104 |
print(f"FNAME IMAGE: {fname_image}")
|
105 |
im2 = imread(fname_image)
|
106 |
print(f"FNAME IMAGE READED: {im2}")
|
107 |
+
flow = fname_flow.cpu()
|
108 |
im_warped, _ = warpImage(im2, flow[:, :, 0], flow[:, :, 1])
|
109 |
imwrite(fname_output, im_warped)
|
110 |
|