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 'copy' #9

Closed
nooriahmed opened this issue Dec 6, 2018 · 4 comments
Closed

AttributeError: 'NoneType' object has no attribute 'copy' #9

nooriahmed opened this issue Dec 6, 2018 · 4 comments

Comments

@nooriahmed
Copy link

Thanks for this grateful implementation. I am training cityscapes dataset. But I am facing this issue. seeking help. I will be very thankful. Regards
File "/adata/Naushad/CCNet/dataset/datasets.py", line 164, in id2trainId
label_copy = label.copy()
AttributeError: 'NoneType' object has no attribute 'copy'

@speedinghzl
Copy link
Owner

@nooriahmed Please make sure your data loader can access the images and labels firstly.

@HqWei
Copy link

HqWei commented Dec 10, 2018

It should be that the path to the data is wrong.

@nooriahmed
Copy link
Author

Great. please correct me if I am wrong "dataset.py" is for VOC dataset. could you please provide cityscape dataset loader. I shall be very grateful to you...

@speedinghzl
Copy link
Owner

@nooriahmed Please go through the whole file "dataset.py", you will get data loader for cityscapes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants