Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
maskrcnn
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
人工智能
maskrcnn
Commits
d74fad1a
Unverified
Commit
d74fad1a
authored
Dec 04, 2018
by
Francisco Massa
Committed by
GitHub
Dec 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Raise error if no GT or proposals available during training (#37)
parent
38ce7a10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
matcher.py
maskrcnn_benchmark/modeling/matcher.py
+9
-3
No files found.
maskrcnn_benchmark/modeling/matcher.py
View file @
d74fad1a
...
...
@@ -51,9 +51,15 @@ class Matcher(object):
be matched.
"""
if
match_quality_matrix
.
numel
()
==
0
:
# handle empty case
device
=
match_quality_matrix
.
device
return
torch
.
empty
((
0
,),
dtype
=
torch
.
int64
,
device
=
device
)
# empty targets or proposals not supported during training
if
match_quality_matrix
.
shape
[
0
]
==
0
:
raise
ValueError
(
"No ground-truth boxes available for one of the images "
"during training"
)
else
:
raise
ValueError
(
"No proposal boxes available for one of the images "
"during training"
)
# match_quality_matrix is M (gt) x N (predicted)
# Max over gt elements (dim 0) to find best gt candidate for each prediction
...
...
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