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

AttributeError: 'NoneType' object has no attribute 'get' #4360

Closed
HassanAsghar1 opened this issue Aug 9, 2021 · 7 comments · Fixed by #4388
Closed

AttributeError: 'NoneType' object has no attribute 'get' #4360

HassanAsghar1 opened this issue Aug 9, 2021 · 7 comments · Fixed by #4388
Labels
question Further information is requested

Comments

@HassanAsghar1
Copy link

❔Question

I am trying to resume training but unfortunately i am getting error (see image).Please guide me about this
!python train.py --img 920 --batch 32 --epochs 500 --data customcoco.yaml --resume /content/yolov5/runs/train/exp/weights/last.pt --save_period 1

Additional context

Plese guide me about this how to solve it
Capture 2

@HassanAsghar1 HassanAsghar1 added the question Further information is requested label Aug 9, 2021
@HassanAsghar1
Copy link
Author

Please guide me about this?i would be very thankful?Thanks

@uefall
Copy link

uefall commented Aug 11, 2021

pip uninstall wandb

@glenn-jocher
Copy link
Member

@AyushExel seems to be a W&B related resume problem.

@HassanAsghar1 this region of the code has been updated recently, I would reclone the repo and start training from scratch and let us know if you run into any future issues.

@AyushExel
Copy link
Contributor

@HassanAsghar1 I'll try to reproduce this and get back to you. Meanwhile can you make sure you're on the lastest version of the repo?

@AyushExel
Copy link
Contributor

OK @HassanAsghar1 I've found the reason for it. It's a bug. I'll put up a fix shortly

@glenn-jocher glenn-jocher linked a pull request Aug 11, 2021 that will close this issue
@glenn-jocher
Copy link
Member

@HassanAsghar1 good news 😃! Your original issue may now be fixed ✅ in PR #4388. To receive this update:

  • Gitgit pull from within your yolov5/ directory or git clone https://github.com/ultralytics/yolov5 again
  • PyTorch Hub – Force-reload with model = torch.hub.load('ultralytics/yolov5', 'yolov5s', force_reload=True)
  • Notebooks – View updated notebooks Open In Colab Open In Kaggle
  • Dockersudo docker pull ultralytics/yolov5:latest to update your image Docker Pulls

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 🚀!

@HassanAsghar1
Copy link
Author

Thanks for your support .Yes, now i can resume the training.

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.

4 participants