Update app.py
Browse files
app.py
CHANGED
@@ -195,7 +195,7 @@ def infer():
|
|
195 |
flow_img = flow_to_image(predicted_flow).to("cpu")
|
196 |
# output_folder = "/tmp/" # Update this to the folder of your choice
|
197 |
write_jpeg(flow_img, f"predicted_flow.jpg")
|
198 |
-
input_image = flow_to_image(
|
199 |
write_jpeg(input_image, f"frame_input.jpg")
|
200 |
flo_file = write_flo(predicted_flow, "flofile.flo")
|
201 |
#write_jpeg(frames[100], f"input_image.jpg")
|
|
|
195 |
flow_img = flow_to_image(predicted_flow).to("cpu")
|
196 |
# output_folder = "/tmp/" # Update this to the folder of your choice
|
197 |
write_jpeg(flow_img, f"predicted_flow.jpg")
|
198 |
+
input_image = flow_to_image(frames[100]).to("cpu")
|
199 |
write_jpeg(input_image, f"frame_input.jpg")
|
200 |
flo_file = write_flo(predicted_flow, "flofile.flo")
|
201 |
#write_jpeg(frames[100], f"input_image.jpg")
|