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

❔Question Whenever i try to run my model i run into this error AttributeError: 'NoneType' object has no attribute 'startswith' from wandbutils.py line 161 I wonder why ? Any workaround or fix #2697

Closed
markgicharu opened this issue Apr 3, 2021 · 6 comments · Fixed by #2762 or ultralytics/yolov3#1737
Labels
bug Something isn't working

Comments

@markgicharu
Copy link

Before submitting a bug report, please be aware that your issue must be reproducible with all of the following, otherwise it is non-actionable, and we can not help you:

If this is a custom dataset/training question you must include your train*.jpg, test*.jpg and results.png figures, or we can not help you. You can generate these with utils.plot_results().

🐛 Bug

A clear and concise description of what the bug is.

To Reproduce (REQUIRED)

Input:

import torch

a = torch.tensor([5])
c = a / 0

Output:

Traceback (most recent call last):
  File "/Users/glennjocher/opt/anaconda3/envs/env1/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3331, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-5-be04c762b799>", line 5, in <module>
    c = a / 0
RuntimeError: ZeroDivisionError

Expected behavior

A clear and concise description of what you expected to happen.

Environment

If applicable, add screenshots to help explain your problem.

  • OS: [e.g. Ubuntu]
  • GPU [e.g. 2080 Ti]

Hello @glenn-jocher,
As per your advise i have pushed this to a bug.
I have posted the screenshots to my error and the wandb logging for assistance

Additional context

Add any other context about the problem here.
data.yaml.zip
image
image
image
image

https://wandb.ai/markgich/YOLOv5/runs/3na79834/logs?workspace=user-

@markgicharu markgicharu added the bug Something isn't working label Apr 3, 2021
@markgicharu
Copy link
Author

Following the aadvise of @AyushExel I have recreated the same problem on the paths
I have decided to pass the absolute path and am making some headway:
image

@glenn-jocher
Copy link
Member

@markgicharu your last screenshot seems fine. The duplicate label warning is because your labels have duplicate rows for those images, so these particular images will be ignored for training.

@markgicharu
Copy link
Author

@glenn-jocher This is well noted.
Thanks for the info on the duplicate label part.
As for the "NoneType" error when i pass the absolute path in the data.yaml the system works.
Am testing a small loop for 5 epochs to see the result.
I can close the issue then?

@markgicharu
Copy link
Author

The system works perfectly
been able to do a successful run
Therefore, the passing the absolute path in the data.yaml helps alleviate this error as well as a workaround!

@glenn-jocher
Copy link
Member

@markgicharu great, thanks for the feedback, and let us know if you run into any other problems!

@markgicharu
Copy link
Author

@glenn-jocher Most welcome and thanks for the great support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants