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
49859788
Commit
49859788
authored
Aug 30, 2019
by
lambdaflow
Committed by
Francisco Massa
Aug 30, 2019
Browse files
Fix rpn.py typo (#1276)
parent
c6e41b5d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torchvision/models/detection/rpn.py
torchvision/models/detection/rpn.py
+2
-2
No files found.
torchvision/models/detection/rpn.py
View file @
49859788
...
@@ -351,7 +351,7 @@ class RegionProposalNetwork(torch.nn.Module):
...
@@ -351,7 +351,7 @@ class RegionProposalNetwork(torch.nn.Module):
Returns:
Returns:
objectness_loss (Tensor)
objectness_loss (Tensor)
box_loss (Tensor
box_loss (Tensor
)
"""
"""
sampled_pos_inds
,
sampled_neg_inds
=
self
.
fg_bg_sampler
(
labels
)
sampled_pos_inds
,
sampled_neg_inds
=
self
.
fg_bg_sampler
(
labels
)
...
@@ -384,7 +384,7 @@ class RegionProposalNetwork(torch.nn.Module):
...
@@ -384,7 +384,7 @@ class RegionProposalNetwork(torch.nn.Module):
features (List[Tensor]): features computed from the images that are
features (List[Tensor]): features computed from the images that are
used for computing the predictions. Each tensor in the list
used for computing the predictions. Each tensor in the list
correspond to different feature levels
correspond to different feature levels
targets (List[Dict[Tensor]): ground-truth boxes present in the image (optional).
targets (List[Dict[Tensor]
]
): ground-truth boxes present in the image (optional).
If provided, each element in the dict should contain a field `boxes`,
If provided, each element in the dict should contain a field `boxes`,
with the locations of the ground-truth boxes.
with the locations of the ground-truth boxes.
...
...
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