MCPcopy Create free account

hub / github.com/cubiq/ComfyUI_InstantID / functions

Functions36 in github.com/cubiq/ComfyUI_InstantID

↓ 9 callersFunctiontensor_to_size
(source, dest_size)
utils.py:3
↓ 6 callersFunction_set_model_patch_replace
(model, patch_kwargs, key)
InstantID.py:120
↓ 4 callersFunctionextractFeatures
(insightface, image, extract_kps=False)
InstantID.py:171
↓ 3 callersFunctionreshape_tensor
(x, heads)
resampler.py:19
↓ 2 callersMethod__init__
(self, state_dict)
InstantID.py:111
↓ 2 callersMethodget_image_embeds
(self, clip_embed, clip_embed_zeroed)
InstantID.py:87
↓ 1 callersFunctionFeedForward
(dim, mult=4)
resampler.py:9
↓ 1 callersMethod__init__
( self, dim=1024, depth=8, dim_head=64, heads=16, num_queries=
resampler.py:79
↓ 1 callersMethodadd
(self, callback, **kwargs)
CrossAttentionPatch.py:12
↓ 1 callersFunctiondraw_kps
(image_pil, kps, color_list=[(255,0,0), (0,255,0), (0,0,255), (255,255,0), (255,0,255)])
InstantID.py:31
↓ 1 callersMethodinit_proj
(self)
InstantID.py:73
↓ 1 callersFunctiontensor_to_image
(tensor)
utils.py:16
MethodINPUT_TYPES
(s)
InstantID.py:140
MethodINPUT_TYPES
(s)
InstantID.py:205
MethodINPUT_TYPES
(s)
InstantID.py:224
MethodINPUT_TYPES
(s)
InstantID.py:256
MethodINPUT_TYPES
(s)
InstantID.py:402
MethodINPUT_TYPES
(s)
InstantID.py:427
MethodINPUT_TYPES
(s)
InstantID.py:520
Method__call__
(self, q, k, v, extra_options)
CrossAttentionPatch.py:19
Method__init__
(self, callback=None, **kwargs)
CrossAttentionPatch.py:8
Method__init__
(self, instantid_model, cross_attention_dim=1280, output_cross_attention_dim=1024, clip_embeddings_dim=512, cl
InstantID.py:60
Method__init__
(self, cross_attention_dim=1024, clip_embeddings_dim=1024, clip_extra_context_tokens=4)
InstantID.py:96
Method__init__
(self, *, dim, dim_head=64, heads=8)
resampler.py:31
Functionadd_noise
(image, factor)
InstantID.py:245
Methodapply_controlnet
(self, face_embeds, control_net, image_kps, positive, negative, strength, start_at, end_at, mask=None)
InstantID.py:542
Methodapply_instantid
(self, instantid, insightface, control_net, image, model, positive, negative, start_at, end_at, weight=.8, ip_
InstantID.py:281
Methodforward
(self, image_embeds)
InstantID.py:104
Methodforward
Args: x (torch.Tensor): image features shape (b, n1, D) latent (torch.Tensor): latent features
resampler.py:46
Methodforward
(self, x)
resampler.py:110
Functionimage_to_tensor
(image)
utils.py:21
Functioninstantid_attention
(out, q, k, v, extra_options, module_key='', ipadapter=None, weight=1.0, cond=None, cond_alt=None, uncond=None
CrossAttentionPatch.py:30
Methodload_insight_face
(self, provider)
InstantID.py:216
Methodload_model
(self, instantid_file)
InstantID.py:147
Methodpatch_attention
(self, instantid, insightface, image, model, weight, start_at, end_at, noise=0.0, mask=None)
InstantID.py:448
Methodpreprocess_image
(self, faceanalysis, image)
InstantID.py:235