fffiloni commited on
Commit
2324fdc
·
1 Parent(s): 9f0b20e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -79,8 +79,8 @@ def infer():
79
  input_frame_2 = read_image(str("./frame2.jpg"), ImageReadMode.UNCHANGED)
80
  print(f"FRAME 1: {input_frame_2}")
81
 
82
- img1_batch = torch.stack([frames[100]])
83
- img2_batch = torch.stack([frames[101]])
84
 
85
  print(f"FRAME AFTER stack: {img1_batch}")
86
 
@@ -170,7 +170,7 @@ def infer():
170
  transform = T.ToPILImage()
171
 
172
  # convert the tensor to PIL image using above transform
173
- img = transform(frames[101])
174
  img = img.resize((960, 520))
175
  # display the PIL image
176
  #img.show()
 
79
  input_frame_2 = read_image(str("./frame2.jpg"), ImageReadMode.UNCHANGED)
80
  print(f"FRAME 1: {input_frame_2}")
81
 
82
+ img1_batch = torch.stack([input_frame_1])
83
+ img2_batch = torch.stack([input_frame_2])
84
 
85
  print(f"FRAME AFTER stack: {img1_batch}")
86
 
 
170
  transform = T.ToPILImage()
171
 
172
  # convert the tensor to PIL image using above transform
173
+ img = transform(input_frame_2)
174
  img = img.resize((960, 520))
175
  # display the PIL image
176
  #img.show()