speedinghzl / CCNet

CCNet: Criss-Cross Attention for Semantic Segmentation (TPAMI 2020 & ICCV 2019).
MIT License
1.42k stars 277 forks source link

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

Closed nooriahmed closed 5 years ago

nooriahmed commented 5 years ago

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 commented 5 years ago

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

HqWei commented 5 years ago

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

nooriahmed commented 5 years ago

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 commented 5 years ago

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