Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
matt3o committed Apr 8, 2024
1 parent 3881dc6 commit 4b900cf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions InstantID.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def INPUT_TYPES(s):
FUNCTION = "apply_instantid"
CATEGORY = "InstantID"

def apply_instantid(self, instantid, insightface, control_net, image, model, positive, negative, start_at, end_at, weight=.8, ip_weight=None, cn_strength=None, noise=0.35, image_kps=None, mask=None, combine_embeds='average', layer=0):
def apply_instantid(self, instantid, insightface, control_net, image, model, positive, negative, start_at, end_at, weight=.8, ip_weight=None, cn_strength=None, noise=0.35, image_kps=None, mask=None, combine_embeds='average'):
self.dtype = torch.float16 if comfy.model_management.should_use_fp16() else torch.float32
self.device = comfy.model_management.get_torch_device()

Expand Down Expand Up @@ -337,7 +337,6 @@ def apply_instantid(self, instantid, insightface, control_net, image, model, pos
"mask": mask,
"sigma_start": sigma_start,
"sigma_end": sigma_end,
"cond_alt": layer,
}

if not is_sdxl:
Expand Down Expand Up @@ -417,7 +416,6 @@ def INPUT_TYPES(s):
"end_at": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.001, }),
"noise": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 1.0, "step": 0.1, }),
"combine_embeds": (['average', 'norm average', 'concat'], {"default": 'average'}),
"layer": ("INT", {"default": 0, "min": 0, "max": 11, "step": 1, }),
},
"optional": {
"image_kps": ("IMAGE",),
Expand Down

0 comments on commit 4b900cf

Please sign in to comment.