Skip to content

Commit

Permalink
fix: set caffe smooth l1 loss threshold to 1
Browse files Browse the repository at this point in the history
Huber loss has threshold set to 1
  • Loading branch information
beniz authored and sileht committed Sep 15, 2020
1 parent 4e52a0e commit 0e329f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/backends/caffe/caffelib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,7 @@ namespace dd
else if (_loss == "L1")
{
lparam->set_type("SmoothL1Loss");
lparam->mutable_smooth_l1_loss_param()->set_sigma(
10.0);
lparam->mutable_smooth_l1_loss_param()->set_sigma(1.0);
}
else if (_loss == "sigmoid")
{
Expand Down

0 comments on commit 0e329f0

Please sign in to comment.