Skip to content

Commit 0319cff

Browse files
committed
gallery: Fix typos
1 parent 8470ff4 commit 0319cff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gallery/others/plot_optical_flow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def preprocess(img1_batch, img2_batch):
134134
# (N, 2, H, W) batch of predicted flows that corresponds to a given "iteration"
135135
# in the model. For more details on the iterative nature of the model, please
136136
# refer to the `original paper <https://arxiv.org/abs/2003.12039>`_. Here, we
137-
# are only interested in the final predicted flows (they are the most acccurate
137+
# are only interested in the final predicted flows (they are the most accurate
138138
# ones), so we will just retrieve the last item in the list.
139139
#
140140
# As described above, a flow is a tensor with dimensions (2, H, W) (or (N, 2, H,
@@ -151,7 +151,7 @@ def preprocess(img1_batch, img2_batch):
151151
# %%
152152
# Visualizing predicted flows
153153
# ---------------------------
154-
# Torchvision provides the :func:`~torchvision.utils.flow_to_image` utlity to
154+
# Torchvision provides the :func:`~torchvision.utils.flow_to_image` utility to
155155
# convert a flow into an RGB image. It also supports batches of flows.
156156
# each "direction" in the flow will be mapped to a given RGB color. In the
157157
# images below, pixels with similar colors are assumed by the model to be moving

gallery/v2_transforms/plot_custom_transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def forward(self, img, bboxes, label): # we assume inputs are always structured
8484
# In the section above, we have assumed that you already know the structure of
8585
# your inputs and that you're OK with hard-coding this expected structure in
8686
# your code. If you want your custom transforms to be as flexible as possible,
87-
# this can be a bit limitting.
87+
# this can be a bit limiting.
8888
#
8989
# A key feature of the builtin Torchvision V2 transforms is that they can accept
9090
# arbitrary input structure and return the same structure as output (with

0 commit comments

Comments
 (0)