WongKinYiu / YOLO

An MIT rewrite of YOLOv9
MIT License
574 stars 63 forks source link

Issues with BoxMatcher and loss #103

Open stiansel opened 2 days ago

stiansel commented 2 days ago

I saw the note in the readme about slower convergence and thought I'd try to help. These are the potential issues I've seen, though there may be others as well.

BoxMatcher:

Loss

henrytsui000 commented 2 days ago

Hi,

Thanks for raising this issue! I'm also working on figuring out why the convergence speed isn't as good as the stable version. Yesterday, I made some changes in commit fd5413f77d03f91b48eebba7dc1b98582bee93ad. If you have time, feel free to take a look.

Here’s a summary of the changes:

I believe some of these changes align with what you mentioned in this issue. Moving forward, I'll add no_grad to CIoU and implement logic to filter out extremely small bounding boxes. I’ll also retrain the model to check if the convergence issue still persists.

The changes so far only impacted the loss by about 0.001, so I suspect the issue may still exist. Let’s continue troubleshooting together!

Best regards, Henry Tsui