Minimalist notes: Focal Loss

Source: Internet
Author: User
"Minimalist Notes" Focal Loss

Focal Loss for dense Object detection

The core of the article is to propose the focal loss to replace the original cross entropy loss
Pt={p,1−p,if y=1otherwise p t = {p, if y = 1 1−p, otherwise p_t=\begin{cases}p, & \text{if $y =1$} \ \ 1-p, & \text{otherwise}\end{cases}
CE (PT) =−log (PT) C E (P t) =−log (P t) ce (p_t) =-\log (p_t)
FL (PT) =− (1−PT) Γlog (PT) F L (P t) =− (1−p t) γlog (P T) FL (p_t) =-(1-p_t) ^\gamma\log (p_t)

The Γγ\gamma in focal loss is an adjustable parameter, and the γ=2γ= 2 \gamma=2 is the best in the experiment. The authors also try to add Αα\alpha Balance effect loss function FL (PT) =−α (1−PT) Γlog (PT) F L (P t) =−α (1−p t) γlog (P T) FL (p_t) = -\alpha (1-p_t) ^\gamma\log (p_t), when

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.