fffiloni commited on
Commit
139bffd
·
1 Parent(s): 49ade40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -203,12 +203,13 @@ def infer():
203
  flo_file = write_flo(predicted_flow, "flofile.flo")
204
  #write_jpeg(frames[100], f"input_image.jpg")
205
  #res = warp_image(img1_batch, predicted_flow)
 
206
 
207
  # define a transform to convert a tensor to PIL image
208
  transform = T.ToPILImage()
209
 
210
  # convert the tensor to PIL image using above transform
211
- img = transform(frames[100])
212
 
213
  # display the PIL image
214
  #img.show()
 
203
  flo_file = write_flo(predicted_flow, "flofile.flo")
204
  #write_jpeg(frames[100], f"input_image.jpg")
205
  #res = warp_image(img1_batch, predicted_flow)
206
+ my_frame = transforms(F.resize(frames[100], size=[520, 960]))
207
 
208
  # define a transform to convert a tensor to PIL image
209
  transform = T.ToPILImage()
210
 
211
  # convert the tensor to PIL image using above transform
212
+ img = transform(my_frame)
213
 
214
  # display the PIL image
215
  #img.show()