Closed OrjwanZaafarani closed 3 years ago
I just solved the issue by following https://docs.ultralytics.com/yolov5/tutorials/hyperparameter_evolution#issuecomment-692599379
However, I still don't understand the effect of removing the anchors.
@OrjwanZaafarani for evolution you should uncomment the anchor field in your hyp file. This will allow the anchor count to evolve.
@OrjwanZaafarani good news 😃! Your original issue may now be fixed ✅ in PR #3887. This PR adds hyp['anchors']=3
if the anchors key is missing/commented in your hyperparameter file, fixing a long-running problem when starting hyp evolution using the default command:
python train.py --evolve
To receive this update:
git pull
from within your yolov5/
directory or git clone https://github.com/ultralytics/yolov5
againmodel = torch.hub.load('ultralytics/yolov5', 'yolov5s', force_reload=True)
sudo docker pull ultralytics/yolov5:latest
to update your image Thank you for spotting this issue and informing us of the problem. Please let us know if this update resolves the issue for you, and feel free to inform us of any other issues you discover or feature requests that come to mind. Happy trainings with YOLOv5 🚀!
❔Question
Why is this command throwing an error?
python train.py --img 640 --batch 32 --epochs 100 --data QMUL.yaml --weights yolov5m6.pt --cache --evolve
The error message: