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
yaoyuping
nnDetection
Commits
12515f18
Commit
12515f18
authored
May 15, 2021
by
mibaumgartner
Browse files
bug fix: correct CE num classes
parent
579f2091
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
nndet/arch/heads/classifier.py
nndet/arch/heads/classifier.py
+2
-2
No files found.
nndet/arch/heads/classifier.py
View file @
12515f18
...
...
@@ -338,7 +338,7 @@ class CEClassifier(BaseClassifier):
num_convs
=
num_convs
,
add_norm
=
add_norm
,
internal_channels
=
internal_channels
,
num_classes
=
num_classes
,
num_classes
=
num_classes
+
1
,
# add one channel for background
anchors_per_pos
=
anchors_per_pos
,
num_levels
=
num_levels
,
**
kwargs
,
...
...
@@ -361,7 +361,7 @@ class CEClassifier(BaseClassifier):
Returns:
Tensor: probabilities
"""
return
self
.
logits_convert_fn
(
box_logits
)[:,
1
:]
return
self
.
logits_convert_fn
(
box_logits
)[:,
1
:]
# remove background predictions
class
FocalClassifier
(
BaseClassifier
):
...
...
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