Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does it work? #6

Open
Johnson-yue opened this issue Aug 17, 2017 · 6 comments
Open

How does it work? #6

Johnson-yue opened this issue Aug 17, 2017 · 6 comments

Comments

@Johnson-yue
Copy link

Hi,sciencefans:
thank you for sharing your code , and I want to know is the Focal Loss work well?? How much improve than before?

@liuyuisanai
Copy link
Owner

Actually I haven't get any gain for now. The result on face detection task of using default setting (alpha=0.25, gamma=2) is just similar with that of using sigmoid_cross_entropy_loss. I'm still trying to make it work.

@XiaoyanLi1
Copy link

@ScienceFans I've implement focal loss for SSD object detection framework. In my case, it's worsen than OHEM, but my friend get higher precision using it in semantic segmentation.

The author used it in object detection with a self-created network similar to SSD. Although the performance is amazing, it is contributed by both larger input size and more anchor boxes.

It's doubtful why they did not prove its effectiveness with a prevailed pipeline, and most likely the problem is in implementation details. Hope to see your further update and discussion.

@liuyuisanai
Copy link
Owner

liuyuisanai commented Sep 2, 2017

@Johnson-yue @XiaoyanLi1
Hi all, in my experiments, focal loss works well on object proposal task. On coco minival, it performs 2% better than softmax loss (recall=82.53%->84.71% @ 300 proposals, IoU=0.5), in which resnet-101 is used as RPN backbone.

@JacobianTang
Copy link

@ScienceFans
Hi,your method is faster rcnn or ssd? rpn network and rcnn network use focal loss?

@bailvwangzi
Copy link

@XiaoyanLi1 I also tried focal loss with SSD, it's worse than OHEM.Do you have any update?

@XiaoyanLi1
Copy link

@bailvwangzi The mAP under the best setting I've tried is still lower than OHEM. Considering the computation cost, I've stopped my experiment. The only conclusion is that the ratio (lambda) between classification loss and regression loss is important. Hyper-parameters I've tried are

  • lambda=1, gamma=2
  • lambda=4, gamma=2
  • lambda=4, gamma=2. alpha=0.25 (best)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants