fffiloni commited on
Commit
6640713
1 Parent(s): ea0a6d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.cpu()
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().detach().numpy()
108
  im_warped, _ = warpImage(im2, flow[:, :, 0], flow[:, :, 1])
109
  imwrite(fname_output, im_warped)
110