From ba2e229f58fd51162b0780087b244434984ec99a Mon Sep 17 00:00:00 2001 From: matt3o Date: Sat, 30 Mar 2024 09:03:01 +0100 Subject: [PATCH] disable noise for FaceID model --- IPAdapterPlus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPAdapterPlus.py b/IPAdapterPlus.py index 93ec17f..6b61e9e 100644 --- a/IPAdapterPlus.py +++ b/IPAdapterPlus.py @@ -226,7 +226,7 @@ def ipadapter_execute(model, img_uncond_embeds = encode_image_masked(clipvision, image_negative).penultimate_hidden_states else: img_cond_embeds = img_cond_embeds.image_embeds if not is_faceid else face_cond_embeds - if image_negative is not None: + if image_negative is not None and not is_faceid: img_uncond_embeds = encode_image_masked(clipvision, image_negative).image_embeds else: img_uncond_embeds = torch.zeros_like(img_cond_embeds)