lizhengwei1992 / Semantic_Human_Matting

Semantic Human Matting
527 stars 145 forks source link

AssertionError while running gen_trimap #27

Open sumitchatterjee13 opened 4 years ago

sumitchatterjee13 commented 4 years ago

Hi,

I am getting following error while running the gen_trimap.sh

assert(cnt1 == cnt2 + cnt3) AssertionError

Can anyone help??

flyfish01 commented 4 years ago

i also got this error, do you resovle it ? i think it caused by mask image , maybe the mak image is not correct. if you resolve it, could you share me, thank you!

FighterFong commented 4 years ago

i also got this error, do you resovle it ? i think it caused by mask image , maybe the mak image is not correct. if you resolve it, could you share me, thank you!

you should let your mask image pixel only 0 or 255: msk[msk>0] = 255