-
-
Notifications
You must be signed in to change notification settings - Fork 16.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pretrain weights #33
Comments
Hello @ou525, thank you for your interest in our work! Please visit our Custom Training Tutorial to get started, and see our Google Colab Notebook, Docker Image, and GCP Quickstart Guide for example environments. If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you. If this is a custom model or data training question, please note that Ultralytics does not provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as:
For more information please visit https://www.ultralytics.com. |
@ou525 if your dataset is small, then yes you are strongly recommended to start training from the pretrained checkpoints:
|
@glenn-jocher,thank you very much for your work and reply! |
My dataset has only four categories, which is different from the coco dataset. So can pre-training weights be used? When I training, the error is not compatible with yolov5l.yaml, specify --weights'' or specify a --cfg compatible with yolov5l.pt |
@glenn-jocher the pretrained weight is whether for the Darknet or for the whole yolo network? |
@ou525 @yxNONG you can request pretrained weights with train.py such as: It does not matter how many output classes are specified in yolov5s.yaml. All pretrained layers with matching sizes are loaded. If you train an 80 class model, then all pretrained layers are loaded. If you train a model with different class counts, then pretrained output layers will not be loaded (because they are not the same shape). All other pretrained layers will be loaded. For more information on this you can see our PyTorch Hub post: |
@glenn-jocher when I updated the code to No. 16, I started training with pre-training weights, but there was a phenomenon of map 0. Is this normal?
|
@ou525 train 300 epochs and then post your results.png. |
@glenn-jocher If training based on pre-training weights still needs so many epochs, if it can not converge quickly, then the role of pre-training weights is not lost? |
@ou525 if you want to see the effect, then train with and without them, both to 300, and post your results. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
When I train my own data set, do I still use the provided complete model as pre-training weights?
The text was updated successfully, but these errors were encountered: