-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: Fix the realistic person's tongue #439
Comments
this PR I drafted some time back - the plan was to ignore the bottom half of face in the mask |
same after ticking Face Mask Correction, |
@timmyhk852 - I tested with tongue out - and it failed. I have had results with mouth open - though it's not good enough. for the simpler cosmetic approach - @Gourieff -did you use mediapipe # Process the image to detect face landmarks.
self.mp_face_mesh = mp.solutions.face_mesh
results = self.mp_face_mesh.process(image_rgb)
img_h, img_w, _ = image.shape
face_3d = []
face_2d = []
if results.multi_face_landmarks:
for face_landmarks in results.multi_face_landmarks: https://github.com/johndpope/Emote-hack/blob/main/Net.py#L941 apply_face_mask_with_exclusion(swapped_image=swapped_image,target_image=result,target_face=target_face,entire_mask_image=entire_mask_image,MEDIA_PIPE_LANDMARK_MASK_WITH_HEAD_CUT_TO_TOP_LIPS) this is advance detection of lips from a project I was reviewing the other week it's possible I could have this contained and wired up to just do this augmentation of mask |
I've been thinking about this as well... We need to make a "reverse engineering" of the inswapper model to improve it and make a new model with 256 or 512 target-input (it would be great for Community to have really free-licensed model with HQ output) and maybe with an additional masking input or as you suggested in the way as it could be a Lora About masking of parts... There is smth like this in Facefusion, I've not tested it with tongues, but it works with lips and teeth |
Hm... Rather interesting... 🧐 |
somewhat related - https://github.com/AtlantixJJ/PVA-CelebAHQ-IDI |
had a play with ConsistentID - IT WORKS!!!! |
I dont understand...so is it possible for the swapped face to tongue out now? |
Nice! I'll take a look next week |
the consistenid works by introducing a new stablediffusion pipeline for my needs - just plugging in to infer.py is fine - just select the SD model - and you can add loras.
i had initially used Marlyn Monroe - and the results were quite good |
Bumping detection threshold up over 0.86 has hit and miss after the 3rd or 4th generation in a batch. Mostly it loses the mask when it does work. More consistency over 0.90 but by then there is no mask. Maybe there's something to be tweaked in that? |
Feature description
The tongue cannot be generated by using this extension.
So the person cannot tongue out.
The text was updated successfully, but these errors were encountered: