Skip to content

❔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

Description

@markgicharu

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-

Activity

markgicharu commented on Apr 3, 2021

@markgicharu
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 commented on Apr 5, 2021

@glenn-jocher
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 commented on Apr 5, 2021

@markgicharu
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 commented on Apr 5, 2021

@markgicharu
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 commented on Apr 5, 2021

@glenn-jocher
Member

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

markgicharu commented on Apr 5, 2021

@markgicharu
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions