Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
4edabbc7
Unverified
Commit
4edabbc7
authored
Oct 01, 2021
by
Nicolas Hug
Committed by
GitHub
Oct 01, 2021
Browse files
Minor typo fixes in comments (#4520)
parent
903ea4a6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
gallery/plot_visualization_utils.py
gallery/plot_visualization_utils.py
+1
-1
torchvision/models/detection/rpn.py
torchvision/models/detection/rpn.py
+1
-1
torchvision/models/feature_extraction.py
torchvision/models/feature_extraction.py
+1
-1
No files found.
gallery/plot_visualization_utils.py
View file @
4edabbc7
...
@@ -116,7 +116,7 @@ show(dogs_with_boxes)
...
@@ -116,7 +116,7 @@ show(dogs_with_boxes)
# lraspp mobilenet models
# lraspp mobilenet models
# (:func:`~torchvision.models.segmentation.lraspp_mobilenet_v3_large`).
# (: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 ou
t
put of the model. Remember that in general,
# images must be normalized before they're passed to a semantic segmentation
# images must be normalized before they're passed to a semantic segmentation
# model.
# model.
...
...
torchvision/models/detection/rpn.py
View file @
4edabbc7
...
@@ -230,7 +230,7 @@ class RegionProposalNetwork(torch.nn.Module):
...
@@ -230,7 +230,7 @@ class RegionProposalNetwork(torch.nn.Module):
# type: (Tensor, Tensor, List[Tuple[int, int]], List[int]) -> Tuple[List[Tensor], List[Tensor]]
# type: (Tensor, Tensor, List[Tuple[int, int]], List[int]) -> Tuple[List[Tensor], List[Tensor]]
num_images
=
proposals
.
shape
[
0
]
num_images
=
proposals
.
shape
[
0
]
device
=
proposals
.
device
device
=
proposals
.
device
# do not backprop through
t
objectness
# do not backprop through objectness
objectness
=
objectness
.
detach
()
objectness
=
objectness
.
detach
()
objectness
=
objectness
.
reshape
(
num_images
,
-
1
)
objectness
=
objectness
.
reshape
(
num_images
,
-
1
)
...
...
torchvision/models/feature_extraction.py
View file @
4edabbc7
...
@@ -37,7 +37,7 @@ class NodePathTracer(LeafModuleAwareTracer):
...
@@ -37,7 +37,7 @@ class NodePathTracer(LeafModuleAwareTracer):
"""
"""
NodePathTracer is an FX tracer that, for each operation, also records the
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
name of the Node from which the operation originated. A node name here is
a `.` sep
e
rated path walking the hierarchy from top level module down to
a `.` sep
a
rated path walking the hierarchy from top level module down to
leaf operation or leaf module. The name of the top level module is not
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
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
forward method applies a ReLU module, the name for that node will simply
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment