Skip to content

Commit

Permalink
Fix minor typo in optical flow gallery example (pytorch#6163)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug committed Jun 14, 2022
1 parent 31414e1 commit af8c8e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery/plot_optical_flow.py
Expand Up @@ -180,7 +180,7 @@ def preprocess(img1_batch, img2_batch):
# # Note: it would be faster to predict batches of flows instead of individual flows
# img1, img2 = preprocess(img1, img2)

# list_of_flows = model(img1.to(device), img1.to(device))
# list_of_flows = model(img1.to(device), img2.to(device))
# predicted_flow = list_of_flows[-1][0]
# flow_img = flow_to_image(predicted_flow).to("cpu")
# output_folder = "/tmp/" # Update this to the folder of your choice
Expand Down

0 comments on commit af8c8e2

Please sign in to comment.