Question :)

#8
by Dast7 - opened

Hi OzzyGT,
First of all, thank you for this incredible demo!
I tried to take your code and adjust it to my liking. I added a fastapi and sent my original file, my prompt. It works but I have some defects around the outline of my mask, like small black dots on the final image. Looking at my mask I realize that it is not completely black and white. Small “gray” dots are at the contours. Do you think this comes from there and should you have any advice for generating face masks? Currently I use shape_predictor_68_face_landmarks.dat
Many thanks again!
chrome_O2PaH7RDwh.png
téléchargement (1).png

Hi, if you're using my code, everything that's not black gets used as a mask, so the gray dots will be used as part of the mask but I've never used a mask model that does it perfectly. This inpainting/outpainting technique works really well so you don't need to be precise but if you leave even a small part of the face from before it will use it, the safer method you can use is to expand the mask enough pixels so it doesn't pickup any part of the old face.

Sign up or log in to comment