Face Models #443
Replies: 14 comments 29 replies
-
yes I think it's a good idea to move the discussion about face models here. Do you mean faceid or something else? |
Beta Was this translation helpful? Give feedback.
-
I did some research on the layers for SD1.5 and face models. It seems output_3 and output_4 are the most active for the face but FaceID and full/plus face react to weights quite differently. For some reason FaceID reacts very well increasing the weight of input_7, but it could be just because the composition gets closer to the reference. Plus/Full face don't have the same behavior but output_11 seems to have some positive impact. I wasn't able to find a clear best configuration, but by tinkering a little I was able to increase the COS similarity by 0.001-0.002. The good news is that I can now constantly get an EUC<0.27 COS<0.015 with FACEIDv2+FULLFACE (dlib). Full face generally seems to perform better than Plus face. The Ideal configuration is as follow: In addition to that for FaceIDv2 I'm increasing the following layers For Full Face: |
Beta Was this translation helpful? Give feedback.
-
maybe We need a better full face model |
Beta Was this translation helpful? Give feedback.
-
I add a unnorm version (don't do l2_norm for the ID embedding) https://huggingface.co/h94/IP-Adapter-FaceID/blob/main/ip-adapter-faceid-portrait_sdxl_unnorm.bin, it will be a little different2 with norm version. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure I understand the new unnormed model. It really burns the image. I have to set CFG 3-5 or use a rescale CFG strategy like below. The prompt is not followed very well and sometimes completely ignored It's fun to use for sure likeliness is fine I guess |
Beta Was this translation helpful? Give feedback.
-
More tests. It's fun to use for sure but not easy. |
Beta Was this translation helpful? Give feedback.
-
forgot to update that the unnorm is now supported for everybody to use. It's definitely better than sdxl portrait but it's very difficult to use and burns the image a lot, so you have to lower the CFG and the image doesn't follow the prompt |
Beta Was this translation helpful? Give feedback.
-
Another great tutorial from @cubiq : Attention Masking gives excellent results, when the characters are separated in the image. Could it be possible to create a new type of IPAdapter model, trained in the various ways characters can interact ? |
Beta Was this translation helpful? Give feedback.
-
I am currently playing around with just FaceIDV2 on it's own (parameters down below) but I am wondering if there are currently any workarounds for the following issue that I'm having. The overall quality of the picture is very dependant on the reference image, as shown below. As you can see, the left image is a very good quality but the right image looks very 'flat' without any shadows and the lighting is also a bit strange.. I seem to have this problem very often and I guess you could possibly fix this issue by using a difference reference image of course but I was wondering if this is a known issue. Personally I'd expect to have the quality of the left picture since only the face embeds are used, but it looks like the overall lighting conditions/shadows are also very important.. which is quite unfortunate since that completely ruins the quality in my case. I am not sure if this is expected behaviour so definitely correct me if I'm wrong but I am also sure that many others are experiencing the same issue, since some reference images might have 'too much lighting' which has a bad influence on the output image. Or perhaps anyone else that could help me out with this? I already have the |
Beta Was this translation helpful? Give feedback.
-
@cubiq Can you confirm whether ConsistentID ( https://github.com/JackAILab/ConsistentID ) is using InsightFace for face embeds like FaceID or if it is similar to Plus Face? I assumed that it was more similar to the Plus Face, so I tried to compare it to the Plus Face at weight 1.0 using face analysis. The problem is that face analysis scored the faces generated with ConsistentID but refused to score the faces generated using Plus Face. Below is the face analysis score from consistentID |
Beta Was this translation helpful? Give feedback.
-
a new face adapter https://huggingface.co/spaces/yanze/PuLID, maby be can added in your repo @cubiq |
Beta Was this translation helpful? Give feedback.
-
@xiaohu2015 do you mind contacting me privately on Discord (I'm matt3o) or email matt3o at gmail or twitter https://twitter.com/cubiq ? I have been offered compute power to train a free face model and I would like to talk to you about it if you are interested. |
Beta Was this translation helpful? Give feedback.
-
Is this discussion at all about what the impact of loading different models into a 'Load Checkpoint' is which is then hooked in to 'Apply InstantID'? I have that question myself and didn't want to start a new discussion if that is relevant to topics discussed here. Just looking to see what impact (if any) when you load different checkpoint models that way. |
Beta Was this translation helpful? Give feedback.
-
Kolors has uploaded their FaceID-Plus to HF. https://huggingface.co/Kwai-Kolors/Kolors-IP-Adapter-FaceID-Plus I couldn't get it to work with existing nodes but then again I'm a novice. |
Beta Was this translation helpful? Give feedback.
-
discussion on face adapter
Beta Was this translation helpful? Give feedback.
All reactions