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
ModelZoo
SOLOv2-pytorch
Commits
756236b6
Commit
756236b6
authored
Jun 11, 2019
by
lizz
Committed by
Kai Chen
Jun 11, 2019
Browse files
typo (#782)
Signed-off-by:
innerlee
<
363664470@qq.com
>
parent
ee82d58d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmdet/models/losses/focal_loss.py
mmdet/models/losses/focal_loss.py
+1
-1
No files found.
mmdet/models/losses/focal_loss.py
View file @
756236b6
...
@@ -13,7 +13,7 @@ class FocalLoss(nn.Module):
...
@@ -13,7 +13,7 @@ class FocalLoss(nn.Module):
gamma
=
2.0
,
gamma
=
2.0
,
alpha
=
0.25
):
alpha
=
0.25
):
super
(
FocalLoss
,
self
).
__init__
()
super
(
FocalLoss
,
self
).
__init__
()
assert
use_sigmoid
is
True
,
'Only sigmoid focaloss supported now.'
assert
use_sigmoid
is
True
,
'Only sigmoid focal
l
oss supported now.'
self
.
use_sigmoid
=
use_sigmoid
self
.
use_sigmoid
=
use_sigmoid
self
.
loss_weight
=
loss_weight
self
.
loss_weight
=
loss_weight
self
.
gamma
=
gamma
self
.
gamma
=
gamma
...
...
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