AdvSemiSeg
AdvSemiSeg copied to clipboard
AttributeError: 'NoneType' object has no attribute 'shape'
File "D:\workspace\AdvSemiSeg\dataset\voc_dataset.py", line 56, in getitem img_h, img_w = label.shape AttributeError: 'NoneType' object has no attribute 'shape'
Can you help me? I tried some ways,but it still has errors.Thank you!
This is likely due to errors from reading images. Please make sure you have the dataset in place
This is likely due to errors from reading images. Please make sure you have the dataset in place
hello,i face the same issue and don't know the reason,my dataset are corrected putted in the right place and it still occured the problem
this error is dut to the wrong path of your ground truth labels which can not be loaded by opencv.
i meet the problem too,but did download SegmentationClassAug and placed it in AdvSemiSeg/dataset/VOC2012/JPEGImages/.how can solve this please?
You should put the folder “SegmentationClassAug“” under the “dataset/VOC2012/” path
I fixed this problem by changing something else. In dataset/voc_list/ the contents of the text files need to have the same format, for example they all have the line feed in the final line.