-
-
Notifications
You must be signed in to change notification settings - Fork 15.9k
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 'python_exit_status' #5913
Comments
@AyushExel seems like a wandb issue here. @awsaf49 can you provide example code that reproduces the same error message for us please? |
@glenn-jocher Here's the notebook1 on Kaggle to reproduce. Notebook is public so you'll be able to simply fork and run to reproduce the issue. |
@awsaf49 I also meet this problem while training in kaggle, you can use '--workers 0' this parameter to avoid this problem while training temporary, maybe it can help you. |
@T1M-CHEN you are right |
@glenn-jocher this doesn't seem like its related to wandb. |
@awsaf49 If you don't need to use the advanced features in v6.0, you can use v5.0 codes on kaggle, using parameter |
@awsaf49 @T1M-CHEN I just updated the Kaggle notebook to the latest, so it's now aligned with the Colab notebook. I see 4 CPUs on Kaggle so you should be able to use up to --workers 4, but regardless YOLOv5 will limit itself to 4 workers rather than the default 8 if the environment only supports 4 workers. The error may simply due to resource saturation, so yes perhaps reducing --workers to 3 or 2 would help. |
@T1M-CHEN
and also with v6.0 still can't resolve the same issue... even changing the workers argument as mentioned by @glenn-jocher |
@glenn-jocher |
@Bhanuchander210 |
@glenn-jocher in GPU kaggle has 2 CPU so I tried |
@Tears1997 👋 hi, thanks for letting us know about this possible problem with YOLOv5 🚀. I am not able to reproduce your bug. When I run the default training in our Colab notebook everything works correctly: We've created a few short guidelines below to help users provide what we need in order to get started investigating a possible problem. How to create a Minimal, Reproducible ExampleWhen asking a question, people will be better able to provide help if you provide code that they can easily understand and use to reproduce the problem. This is referred to by community members as creating a minimum reproducible example. Your code that reproduces the problem should be:
For Ultralytics to provide assistance your code should also be:
If you believe your problem meets all the above criteria, please close this issue and raise a new one using the 🐛 Bug Report template with a minimum reproducible example to help us better understand and diagnose your problem. Thank you! 😃 |
i faced the same problem on kaggle, but as @glenn-jocher said, on colab it complately works. |
@LightDani @awsaf49 @T1M-CHEN good news 😃! Your original issue may now be fixed ✅ in PR #6041. This PR resets all logging handlers before running any commands, which fixes the Kaggle missing output bug. This does not resolve the original error message reported in this issue. To receive this update:
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 🚀! |
@glenn-jocher Yes, you are right. now the logger is visible ... :D |
👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs. Access additional YOLOv5 🚀 resources:
Access additional Ultralytics ⚡ resources:
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed! Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐! |
Hi, I faced the same problem again in 2022 after the training finished? What should I do? I am a newbie. |
@MheadHero 👋 hi, thanks for letting us know about this possible problem with YOLOv5 🚀. We've created a few short guidelines below to help users provide what we need in order to start investigating a possible problem. How to create a Minimal, Reproducible ExampleWhen asking a question, people will be better able to provide help if you provide code that they can easily understand and use to reproduce the problem. This is referred to by community members as creating a minimum reproducible example. Your code that reproduces the problem should be:
For Ultralytics to provide assistance your code should also be:
If you believe your problem meets all the above criteria, please close this issue and raise a new one using the 🐛 Bug Report template with a minimum reproducible example to help us better understand and diagnose your problem. Thank you! 😃 |
I just run as this |
@Suozz you've passed We've created a few short guidelines below to help users provide what we need in order to start investigating a possible problem. How to create a Minimal, Reproducible ExampleWhen asking a question, people will be better able to provide help if you provide code that they can easily understand and use to reproduce the problem. This is referred to by community members as creating a minimum reproducible example. Your code that reproduces the problem should be:
For Ultralytics to provide assistance your code should also be:
If you believe your problem meets all the above criteria, please close this issue and raise a new one using the 🐛 Bug Report template with a minimum reproducible example to help us better understand and diagnose your problem. Thank you! 😃 |
Hello, has the problem been solved? |
@haoshifu update your torch to the latest |
ERROR:( # torch1.13, nice baby
if _utils is None or _utils.python_exit_status is True or _utils.python_exit_status is None: return # torch1.7-1.12, bad guy
python_exit_status = _utils.python_exit_status
if python_exit_status is True or python_exit_status is None: return So, the simple solution is that modify the source code from |
@shinianzhihou Thank you for sharing your findings! It seems like you have identified a potential solution to the issue based on the differences you observed in the PyTorch source code. You're welcome to create a pull request with your proposed modification to the YOLOv5 repository. Your contribution would be greatly appreciated by the community. This will allow the Ultralytics team to review your changes and consider incorporating them into the YOLOv5 codebase. Thank you for taking the initiative to investigate this issue and suggesting a potential solution! If you have any further questions or need assistance with the pull request process, feel free to ask. |
Search before asking
YOLOv5 Component
Training
Bug
After completion of the training, I'm getting this error,
Environment
Kaggle
Minimal Reproducible Example
Notebook Link here
Additional
I think I saw a similar post but it was in Japanese which I couldn't understand hence I'm posting it here in English.
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: