MCPcopy Create free account

hub / github.com/ZHO-ZHO-ZHO/ComfyUI-InstantID / functions

Functions45 in github.com/ZHO-ZHO-ZHO/ComfyUI-InstantID

↓ 3 callersFunctionreshape_tensor
(x, heads)
ip_adapter/resampler.py:19
↓ 2 callersMethod__init__
( self, hidden_size=None, cross_attention_dim=None, )
ip_adapter/attention_processor.py:25
↓ 2 callersMethod_memory_efficient_attention_xformers
(self, query, key, value, attention_mask)
ip_adapter/attention_processor.py:213
↓ 2 callersFunctiondraw_kps
(image_pil, kps, color_list=[(255,0,0), (0,255,0), (0,0,255), (255,255,0), (255,0,255)])
pipeline_stable_diffusion_xl_instantid.py:104
↓ 2 callersFunctionresize_img
(input_image, max_side=1280, min_side=1024, size=None, pad_to_max_side=False, mode=Image.BILIN
InstantIDNode.py:29
↓ 1 callersFunctionFeedForward
(dim, mult=4)
ip_adapter/resampler.py:9
↓ 1 callersMethod__init__
( self, dim=1024, depth=8, dim_head=64, heads=16, num_queries=
ip_adapter/resampler.py:79
↓ 1 callersMethod_encode_prompt_image_emb
(self, prompt_image_emb, device, dtype, do_classifier_free_guidance)
pipeline_stable_diffusion_xl_instantid.py:217
↓ 1 callersFunctionapply_style
(style_name: str, positive: str, negative: str = "")
InstantIDNode.py:24
↓ 1 callersMethodset_image_proj_model
(self, model_ckpt, image_emb_dim=512, num_tokens=16)
pipeline_stable_diffusion_xl_instantid.py:159
↓ 1 callersMethodset_ip_adapter
(self, model_ckpt, num_tokens, scale)
pipeline_stable_diffusion_xl_instantid.py:182
↓ 1 callersMethodset_ip_adapter_scale
(self, scale)
pipeline_stable_diffusion_xl_instantid.py:211
MethodINPUT_TYPES
(s)
InstantIDNode.py:58
MethodINPUT_TYPES
(cls)
InstantIDNode.py:82
MethodINPUT_TYPES
(cls)
InstantIDNode.py:106
MethodINPUT_TYPES
(cls)
InstantIDNode.py:135
MethodINPUT_TYPES
(cls)
InstantIDNode.py:173
MethodINPUT_TYPES
(cls)
InstantIDNode.py:201
MethodINPUT_TYPES
(cls)
InstantIDNode.py:226
Method__call__
r""" The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*): T
pipeline_stable_diffusion_xl_instantid.py:237
Method__call__
( self, attn, hidden_states, encoder_hidden_states=None, attention_mas
ip_adapter/attention_processor.py:32
Method__call__
( self, attn, hidden_states, encoder_hidden_states=None, attention_mas
ip_adapter/attention_processor.py:118
Method__call__
( self, attn, hidden_states, encoder_hidden_states=None, attention_mas
ip_adapter/attention_processor.py:236
Method__init__
(self)
InstantIDNode.py:78
Method__init__
(self)
InstantIDNode.py:102
Method__init__
(self)
InstantIDNode.py:131
Method__init__
(self)
InstantIDNode.py:169
Method__init__
(self)
InstantIDNode.py:197
Method__init__
(self)
InstantIDNode.py:222
Method__init__
(self)
ip_adapter/attention_processor.py:16
Method__init__
(self, hidden_size, cross_attention_dim=None, scale=1.0, num_tokens=4)
ip_adapter/attention_processor.py:107
Method__init__
( self, hidden_size=None, cross_attention_dim=None, )
ip_adapter/attention_processor.py:227
Method__init__
(self, *, dim, dim_head=64, heads=8)
ip_adapter/resampler.py:31
Methodcuda
(self, dtype=torch.float16, use_xformers=False)
pipeline_stable_diffusion_xl_instantid.py:135
Methodforward
Args: x (torch.Tensor): image features shape (b, n1, D) latent (torch.Tensor): latent features
ip_adapter/resampler.py:46
Methodforward
(self, x)
ip_adapter/resampler.py:110
Methodid_generate_image
(self, insightface, positive, negative, face_image, pipe, ip_adapter_scale, controlnet_conditioning_scale, ste
InstantIDNode.py:250
Methodid_prompt_style
(self, style_name, prompt, negative_prompt)
InstantIDNode.py:215
Functionis_torch2_available
()
ip_adapter/utils.py:4
Methodload_idcontrolnet
(self, controlnet_path)
InstantIDNode.py:94
Methodload_insight_face_antelopev2
(self, provider)
InstantIDNode.py:69
Methodload_ip_adapter_instantid
(self, pipe, Ipadapter_instantid_path, filename)
InstantIDNode.py:186
Methodload_ip_adapter_instantid
(self, model_ckpt, image_emb_dim=512, num_tokens=16, scale=0.5)
pipeline_stable_diffusion_xl_instantid.py:155
Methodload_model
(self, base_model_path, controlnet)
InstantIDNode.py:119
Methodload_model
(self, ckpt_name, controlnet)
InstantIDNode.py:148