Skip to content
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

evolve throws an error #3481

Closed
OrjwanZaafarani opened this issue Jun 6, 2021 · 2 comments · Fixed by #3887
Closed

evolve throws an error #3481

OrjwanZaafarani opened this issue Jun 6, 2021 · 2 comments · Fixed by #3887
Labels
question Further information is requested

Comments

@OrjwanZaafarani
Copy link

❔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:

Traceback (most recent call last):
  File "train.py", line 610, in <module>
    hyp[k] = max(hyp[k], v[1])  # lower limit
KeyError: 'anchors'
@OrjwanZaafarani OrjwanZaafarani added the question Further information is requested label Jun 6, 2021
@OrjwanZaafarani
Copy link
Author

OrjwanZaafarani commented Jun 6, 2021

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.

@glenn-jocher
Copy link
Member

@OrjwanZaafarani for evolution you should uncomment the anchor field in your hyp file. This will allow the anchor count to evolve.

@glenn-jocher glenn-jocher linked a pull request Jul 5, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants