WongKinYiu / ScaledYOLOv4

Scaled-YOLOv4: Scaling Cross Stage Partial Network
GNU General Public License v3.0
2.02k stars 574 forks source link

Yolov4x-mish -Very high loss & Negative iou loss #316

Open akashAD98 opened 3 years ago

akashAD98 commented 3 years ago

I have 21 classes & it contains both small & big objects. There are 7 classes having more than 10k instances & other classes have few instances in the range of 2k-4k. (I have cross-checked all annotations & it's perfect) My question is why I'm getting very high loss & Negative IOU loss. How can I solve this problem? Your help is really appreciated @WongKinYiu

178loss-weapons

BenDangHD commented 2 years ago

Did you find out why? Depending on the box loss gain i choose in the hyperparameters, my box loss becomes greater than 1 and i observed negative values in the iou tensor