-
-
Notifications
You must be signed in to change notification settings - Fork 17.2k
Description
Search before asking
- I have searched the YOLOv5 issues and found no similar feature requests.
Description
I searched for all the related content on incremental learning in the issue tracker and conducted many experiments, but I found that the performance of incremental learning was poor. In the current object detection project using YOLO, we often need to continuously add new data to the original dataset to improve the model's accuracy. However, retraining the model using the entire dataset each time requires significant computational cost. Therefore, I attempted to use incremental learning to solve this problem. I trained a model using 30,000 images and obtained the best model, then added 50 new images to the original 30,000 for retraining. The number of classes in the new data was consistent with the original data. I initially thought that training for 50 epochs would suffice, but unexpectedly, the mAP kept decreasing. After training for 20 epochs, the mAP dropped from 0.92 to 0.1. I then reduced the learning rate to one-tenth of the original value, but the performance was still poor. On top of this, I froze the backbone layers and only trained the head, but the results were still unsatisfactory. Now, I have no choice but to retrain the model using the official pre-trained weights.
I'm not sure if my approach is incorrect or if YOLO doesn't support incremental learning, but if this issue can be resolved, YOLO would see a significant improvement.
Use case
No response
Additional
No response
Are you willing to submit a PR?
- Yes I'd like to help by submitting a PR!