fffiloni commited on
Commit
089d664
1 Parent(s): 259ccf5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -178,8 +178,8 @@ def infer():
178
  #print(flow_imgs)
179
 
180
  predicted_flow = list_of_flows[-1][0]
181
- print(f"predicted flow dtype = {predicted_flows.dtype}")
182
- print(f"predicted flow shape = {predicted_flows.shape}")
183
 
184
  flow_img = flow_to_image(predicted_flow).to("cpu")
185
  # output_folder = "/tmp/" # Update this to the folder of your choice
@@ -206,7 +206,10 @@ def infer():
206
  print(f"frame1pil shape: {frame1pil.shape}")
207
  print(f"frame1pil dtype: {frame1pil.dtype}")
208
  img.save('frame_input.jpg')
209
- #res = get_warp_res('frame_input.jpg', "predicted_flow.jpg", 'warped.png')
 
 
 
210
  #print(res)
211
  return "done", "predicted_flow.jpg", ["flofile.flo"], 'frame_input.jpg'
212
  ####################################
 
178
  #print(flow_imgs)
179
 
180
  predicted_flow = list_of_flows[-1][0]
181
+ print(f"predicted flow dtype = {predicted_flow.dtype}")
182
+ print(f"predicted flow shape = {predicted_flow.shape}")
183
 
184
  flow_img = flow_to_image(predicted_flow).to("cpu")
185
  # output_folder = "/tmp/" # Update this to the folder of your choice
 
206
  print(f"frame1pil shape: {frame1pil.shape}")
207
  print(f"frame1pil dtype: {frame1pil.dtype}")
208
  img.save('frame_input.jpg')
209
+ print(f"img1_batch: {img1_batch}")
210
+ print(f"img1_batch shape: {img1_batch.shape}")
211
+ print(f"img1_batch dtype: {img1_batch.dtype}")
212
+ #res = get_warp_res(img1_batch, "predicted_flow.jpg", 'warped.png')
213
  #print(res)
214
  return "done", "predicted_flow.jpg", ["flofile.flo"], 'frame_input.jpg'
215
  ####################################