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
7715f235
Commit
7715f235
authored
Jun 11, 2019
by
Jiangmiao Pang
Committed by
Kai Chen
Jun 11, 2019
Browse files
Fix bugs in balanced l1 loss (#790)
* Update Libra R-CNN Benchmark * fix bug in balanced_l1_loss
parent
7a6306f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
mmdet/models/losses/balanced_l1_loss.py
mmdet/models/losses/balanced_l1_loss.py
+1
-3
No files found.
mmdet/models/losses/balanced_l1_loss.py
View file @
7715f235
...
...
@@ -2,7 +2,7 @@ import numpy as np
import
torch
import
torch.nn
as
nn
from
.utils
import
reduce_loss
,
weighted_loss
from
.utils
import
weighted_loss
from
..registry
import
LOSSES
...
...
@@ -23,8 +23,6 @@ def balanced_l1_loss(pred,
(
b
*
diff
+
1
)
*
torch
.
log
(
b
*
diff
/
beta
+
1
)
-
alpha
*
diff
,
gamma
*
diff
+
gamma
/
b
-
alpha
*
beta
)
loss
=
reduce_loss
(
loss
,
reduction
)
return
loss
...
...
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