TypeError: '>' not supported between instances of 'NoneType' and 'int'
Opened this issue · 1 comments
dengfenglai321 commented
when i run python main.py, the error accurs as below:
File "/media/cendelian/新加卷/CV/Project/人像分割/portrait_segmentation/data/DataSet.py", line 42, in getitem
label_bool = 255 * ((label > 200).astype(np.uint8))
TypeError: '>' not supported between instances of 'NoneType' and 'int'
could you help me
Ailycus commented
You can first check if the value of label is correct,The value of the label variable may not be read correctly