-
-
Notifications
You must be signed in to change notification settings - Fork 17.4k
Update train.py #13497
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
base: master
Are you sure you want to change the base?
Update train.py #13497
Conversation
updated deprecated call Signed-off-by: Shubham Phapale <[email protected]>
|
All Contributors have signed the CLA. β
|
|
π Hello @ShubhamPhapale, thank you for submitting a
For more guidance, please refer to our Contributing Guide. Donβt hesitate to leave a comment if you have any questions. Thank you for contributing to Ultralytics! π π οΈ NotesIt looks like your PR updates AMP autocast usage for compatibility with PyTorch 2.0+, which is an important improvement. If applicable, please include a minimum reproducible example (MRE) so we can fully understand and test the impact of this change. For example, providing specific training scenarios where the prior implementation failed due to autograd issues with PyTorch 2.0+ would help validate this fix. An Ultralytics engineer will also review this PR shortly. Stay tuned for additional feedback! π Made with β€οΈ by Ultralytics Actions |
|
I have read the CLA Document and I sign the CLA |
|
π Hello there! We wanted to let you know that we've decided to close this pull request due to inactivity. We appreciate the effort you put into contributing to our project, but unfortunately, not all contributions are suitable or aligned with our product roadmap. We hope you understand our decision, and please don't let it discourage you from contributing to open source projects in the future. We value all of our community members and their contributions, and we encourage you to keep exploring new projects and ways to get involved. For additional resources and information, please see the links below:
Thank you for your contributions to YOLO π and Vision AI β |
updated deprecated call
π οΈ PR Summary
Made with β€οΈ by Ultralytics Actions
π Summary
Updated AMP (Automatic Mixed Precision) autocast usage for compatibility with PyTorch 2.0+.
π Key Changes
torch.cuda.amp.autocast(amp)withtorch.amp.autocast('cuda', amp)in the training script.π― Purpose & Impact