pkhungurn / talking-head-anime-3-demo

Demo Programs for the "Talking Head(?) Anime from a Single Image 3: Now the Body Too" Project
http://pkhungurn.github.io/talking-head-anime-3/
MIT License
950 stars 101 forks source link

fix: change transparent color to 0,0,0,0 to avoid the color influence to the model #1

Closed yuyuyzl closed 2 years ago

yuyuyzl commented 2 years ago

Thanks for your great work! I'm a big fan of tha2 and it is so nice to see the demo of tha3. It took me about 2 hours to figure out why my crypko generated image will not work but the originial images in the demo work well. Seems the transparent pixel's actual color (it has RGB though its A is 0) has a big influence on the model itself. The images provided by your demo has [0 0 0 0] for transparent pixels, but my Photoshop prefer [255 255 255 0] as transparent, and thus the output is not acceptable. 070S Q3D7V A8FU{}%% R_8 1R_~8)G76LF~IE ~Y`9M}~C K}$YZ4T(M${2))){IK 2YS So I add a small fix on the PIL image to purify the transparent pixels, and my input images work well. 0I%Q$XVZ6(NSY4~FFC)QQ1P Cheers! Have a good day.

yuyuyzl commented 2 years ago

In case you need a "wrong" example, I use my Photoshop to save the lambda_00.png. lambda_00_255.zip image