Update app.py
Browse files
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([
|
83 |
-
img2_batch = torch.stack([
|
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(
|
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()
|