From f07d5dd971e75002b9eabda746eff10ee8244bb6 Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Fri, 1 Oct 2021 10:17:42 +0100 Subject: [PATCH] Minor typo fixes --- gallery/plot_visualization_utils.py | 2 +- torchvision/models/detection/rpn.py | 2 +- torchvision/models/feature_extraction.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gallery/plot_visualization_utils.py b/gallery/plot_visualization_utils.py index daa22fe8fa6..628319e52d5 100644 --- a/gallery/plot_visualization_utils.py +++ b/gallery/plot_visualization_utils.py @@ -116,7 +116,7 @@ def show(imgs): # lraspp mobilenet models # (:func:`~torchvision.models.segmentation.lraspp_mobilenet_v3_large`). # -# Let's start by looking at the ouput of the model. Remember that in general, +# Let's start by looking at the output of the model. Remember that in general, # images must be normalized before they're passed to a semantic segmentation # model. diff --git a/torchvision/models/detection/rpn.py b/torchvision/models/detection/rpn.py index a98eac24dd3..fcac856a916 100644 --- a/torchvision/models/detection/rpn.py +++ b/torchvision/models/detection/rpn.py @@ -230,7 +230,7 @@ def filter_proposals(self, proposals, objectness, image_shapes, num_anchors_per_ # type: (Tensor, Tensor, List[Tuple[int, int]], List[int]) -> Tuple[List[Tensor], List[Tensor]] num_images = proposals.shape[0] device = proposals.device - # do not backprop throught objectness + # do not backprop through objectness objectness = objectness.detach() objectness = objectness.reshape(num_images, -1) diff --git a/torchvision/models/feature_extraction.py b/torchvision/models/feature_extraction.py index 7d5d184cd97..8ba40e7c09d 100644 --- a/torchvision/models/feature_extraction.py +++ b/torchvision/models/feature_extraction.py @@ -37,7 +37,7 @@ class NodePathTracer(LeafModuleAwareTracer): """ NodePathTracer is an FX tracer that, for each operation, also records the name of the Node from which the operation originated. A node name here is - a `.` seperated path walking the hierarchy from top level module down to + a `.` separated path walking the hierarchy from top level module down to leaf operation or leaf module. The name of the top level module is not included as part of the node name. For example, if we trace a module whose forward method applies a ReLU module, the name for that node will simply