Peterisfar / YOLOV3

yolov3 by pytorch
MIT License
195 stars 53 forks source link

Dear author, why do you choose alpha =1.0 in the focal loss? #21

Closed jumoran closed 4 years ago

Peterisfar commented 4 years ago

It is not absolute, you can use the alpha coefficient to balance the positive and negative sample proportions or not. I didn't use it here, only gamma = 2.0. you can try to add alpha just modify the loss.py.