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
e89f639f
Unverified
Commit
e89f639f
authored
Oct 04, 2022
by
Robert Perrotta
Committed by
GitHub
Oct 04, 2022
Browse files
Fix error message typo (#6682)
parent
07ae61bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/models/detection/roi_heads.py
torchvision/models/detection/roi_heads.py
+1
-1
No files found.
torchvision/models/detection/roi_heads.py
View file @
e89f639f
...
...
@@ -787,7 +787,7 @@ class RoIHeads(nn.Module):
mask_proposals
=
[
p
[
"boxes"
]
for
p
in
result
]
if
self
.
training
:
if
matched_idxs
is
None
:
raise
ValueError
(
"if in train
n
ing, matched_idxs should not be None"
)
raise
ValueError
(
"if in training, matched_idxs should not be None"
)
# during training, only focus on positive boxes
num_images
=
len
(
proposals
)
...
...
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