Skip to content

Commit c891a93

Browse files
committed
fix hooks
1 parent a85b6b4 commit c891a93

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/source/models.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,4 +810,5 @@ Raft
810810
:template: function.rst
811811

812812
torchvision.models.optical_flow.raft_large
813-
torchvision.models.optical_flow.raft_small
813+
torchvision.models.optical_flow.raft_small
814+

torchvision/models/optical_flow/raft.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def __init__(self, *, feature_encoder, context_encoder, corr_block, update_block
412412
These 2 parts are split according to the ``hidden_state_size`` of the ``update_block``, so the output
413413
of the ``context_encoder`` must be strictly greater than ``hidden_state_size``.
414414
415-
clorr_block (nn.Module): The correlation block, which creates a correlation pyramid from the output of the
415+
corr_block (nn.Module): The correlation block, which creates a correlation pyramid from the output of the
416416
``feature_encoder``, and then indexes from this pyramid to create correlation features. It must expose
417417
2 methods:
418418
@@ -427,7 +427,7 @@ def __init__(self, *, feature_encoder, context_encoder, corr_block, update_block
427427
flow head. It takes as input the hidden state of its recurrent unit, the context, the correlation
428428
features, and the current predicted flow. It outputs an updated hidden state, and the ``delta_flow``
429429
prediction (see paper appendix A). It must expose a ``hidden_state_size`` attribute.
430-
maks_predictor (nn.Module, optional): Predicts the mask that will be used to upsample the predicted flow.
430+
mask_predictor (nn.Module, optional): Predicts the mask that will be used to upsample the predicted flow.
431431
The output channel must be 8 * 8 * 9 - see paper section 3.3, and Appendix B.
432432
If ``None`` (default), the flow is upsampled using interpolation.
433433
"""

0 commit comments

Comments
 (0)