fffiloni commited on
Commit
e6f82a5
1 Parent(s): 5bd181a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -211,7 +211,7 @@ def infer():
211
  print(f"img1_batch dtype: {img1_batch.dtype}")
212
  #res = get_warp_res(img1_batch, "predicted_flow.jpg", 'warped.png')
213
 
214
- numpy_array_flow = predicted_flow.numpy()
215
  print(f"numpy_array_flow: {numpy_array_flow}")
216
  print(f"numpy_array_flow shape: {numpy_array_flow.shape}")
217
  print(f"numpy_array_flow dtype: {numpy_array_flow.dtype}")
 
211
  print(f"img1_batch dtype: {img1_batch.dtype}")
212
  #res = get_warp_res(img1_batch, "predicted_flow.jpg", 'warped.png')
213
 
214
+ numpy_array_flow = predicted_flow.permute(1, 2, 0).detach().cpu().numpy()
215
  print(f"numpy_array_flow: {numpy_array_flow}")
216
  print(f"numpy_array_flow shape: {numpy_array_flow.shape}")
217
  print(f"numpy_array_flow dtype: {numpy_array_flow.dtype}")