clovaai / ext_portrait_segmentation

MIT License
239 stars 68 forks source link

TypeError: '>' not supported between instances of 'NoneType' and 'int' #13

Open dengfenglai321 opened 4 years ago

dengfenglai321 commented 4 years ago

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 4 years ago

You can first check if the value of label is correct,The value of the label variable may not be read correctly