fffiloni commited on
Commit
83deeb0
·
1 Parent(s): 62a40a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -61,7 +61,7 @@ def write_flo(flow, filename):
61
  #warp using scipy
62
  def warp_image(im, flow):
63
  print(f"IMAGE: {im}")
64
- im = im.cpu().data.numpy()
65
  im = im.astype(np.float32)
66
  print(f"IMAGE AP: {im}")
67
  print(f"FLOW AV: {flow}")
 
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)
66
  print(f"IMAGE AP: {im}")
67
  print(f"FLOW AV: {flow}")