minivision-ai / photo2cartoon

人像卡通化探索项目 (photo-to-cartoon translation project)
MIT License
3.94k stars 763 forks source link

test时的报错 IndexError #33

Closed LyannaLAU closed 4 years ago

LyannaLAU commented 4 years ago

Traceback (most recent call last): File "test.py", line 59, in cartoon = c2p.inference(img) File "test.py", line 38, in inference mask = face_rgba[:, :, 3][:, :, np.newaxis].copy() / 255. IndexError: index 3 is out of bounds for axis 2 with size 3

这个要怎么解决呢?谢谢你们

LyannaLAU commented 4 years ago

已经解决了,打扰你们啦