MCPcopy Create free account

hub / github.com/cubiq/PuLID_ComfyUI / functions

Functions214 in github.com/cubiq/PuLID_ComfyUI

↓ 51 callersFunction_pcfg
(url='', hf_hub='', filename='', mean=None, std=None)
eva_clip/pretrained.py:18
↓ 10 callersMethod__init__
( self, dim, num_heads=8, qkv_bias=True, scaled_co
eva_clip/transformer.py:151
↓ 7 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_
eva_clip/eva_vit_model.py:48
↓ 5 callersFunction_ntuple
(n)
eva_clip/utils.py:277
↓ 5 callersFunctionimage_transform
( image_size: int, is_train: bool, mean: Optional[Tuple[float, ...]] = None, s
eva_clip/transform.py:60
↓ 5 callersFunctionload_state_dict
(checkpoint_path: str, map_location: str='cpu', model_key: str='model|module|state_dict', is_openai: bool=Fals
eva_clip/factory.py:80
↓ 4 callersFunction_clean_tag
(tag: str)
eva_clip/pretrained.py:191
↓ 4 callersMethod_make_layer
(self, planes, blocks, stride=1)
eva_clip/modified_resnet.py:132
↓ 4 callersFunctionget_pretrained_cfg
(model: str, tag: str)
eva_clip/pretrained.py:227
↓ 3 callersFunctioncreate_model
( model_name: str, pretrained: Optional[str] = None, precision: str = 'fp32',
eva_clip/factory.py:211
↓ 3 callersFunctiondownload_pretrained
( cfg: Dict, force_hf_hub: bool = False, cache_dir: Union[str, None] = None, )
eva_clip/pretrained.py:304
↓ 3 callersFunctionfreeze_batch_norm_2d
Converts all `BatchNorm2d` and `SyncBatchNorm` layers of provided module into `FrozenBatchNorm2d`. If `module` is itself an instance of eithe
eva_clip/utils.py:237
↓ 3 callersMethodlock
lock modules Args: unlocked_groups (int): leave last n layer groups unlocked (default: 0)
eva_clip/timm_model.py:80
↓ 3 callersFunctionrotate_half
(x)
eva_clip/rope.py:23
↓ 3 callersFunctionset_model_patch_replace
(model, patch_kwargs, key)
pulid.py:76
↓ 2 callersMethod__init__
(self, inplanes, planes, stride=1)
eva_clip/modified_resnet.py:13
↓ 2 callersFunction_build_text_tower
( embed_dim: int, text_cfg: CLIPTextCfg, quick_gelu: bool = False, cast_dtype:
eva_clip/model.py:173
↓ 2 callersFunction_build_vision_tower
( embed_dim: int, vision_cfg: CLIPVisionCfg, quick_gelu: bool = False, cast_dt
eva_clip/model.py:92
↓ 2 callersFunction_rescan_model_configs
()
eva_clip/factory.py:29
↓ 2 callersMethodadd
(self, callback, **kwargs)
pulid.py:99
↓ 2 callersFunctionbasic_clean
(text)
eva_clip/tokenizer.py:60
↓ 2 callersFunctionbroadcat
(tensors, dim = -1)
eva_clip/rope.py:7
↓ 2 callersFunctionbuild_model_from_openai_state_dict
( state_dict: dict, quick_gelu=True, cast_dtype=torch.float16, )
eva_clip/model.py:366
↓ 2 callersFunctionbytes_to_unicode
Returns list of utf-8 byte and a corresponding list of unicode strings. The reversible bpe codes work on unicode strings. This means you
eva_clip/tokenizer.py:26
↓ 2 callersFunctiondownload_pretrained_from_hf
( model_id: str, filename: str = 'open_clip_pytorch_model.bin', revision=None,
eva_clip/pretrained.py:293
↓ 2 callersFunctiondownload_pretrained_from_url
( url: str, cache_dir: Union[str, None] = None, )
eva_clip/pretrained.py:239
↓ 2 callersMethodforward_features
(self, x, return_all_features=False, return_hidden=False, shuffle=False)
eva_clip/eva_vit_model.py:493
↓ 2 callersFunctionget_cast_dtype
(precision: str)
eva_clip/model.py:83
↓ 2 callersMethodget_cast_dtype
(self)
eva_clip/transformer.py:508
↓ 2 callersMethodget_image_embeds
(self, face_embed, clip_embeds)
pulid.py:40
↓ 2 callersFunctionget_model_config
(model_name)
eva_clip/factory.py:66
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
eva_clip/tokenizer.py:48
↓ 2 callersFunctionget_pretrained_tag
(pretrained_model)
eva_clip/factory.py:152
↓ 2 callersFunctionget_pretrained_url
(model: str, tag: str)
eva_clip/pretrained.py:234
↓ 2 callersFunctionhas_hf_hub
(necessary=False)
eva_clip/pretrained.py:285
↓ 2 callersFunctionload_clip_text_state_dict
(checkpoint_path: str, map_location: str='cpu', is_openai: bool=False, skip_list:list=[])
eva_clip/factory.py:144
↓ 2 callersFunctionload_clip_visual_state_dict
(checkpoint_path: str, map_location: str='cpu', is_openai: bool=False, skip_list:list=[])
eva_clip/factory.py:131
↓ 2 callersFunctionpatch_device
(module)
eva_clip/openai.py:97
↓ 2 callersFunctionpatch_float
(module)
eva_clip/openai.py:121
↓ 2 callersMethodreset_classifier
(self, num_classes, global_pool='')
eva_clip/eva_vit_model.py:489
↓ 2 callersMethodset_grad_checkpointing
(self, enable=True)
eva_clip/model.py:238
↓ 2 callersFunctionwhitespace_clean
(text)
eva_clip/tokenizer.py:66
↓ 1 callersMethod__init__
(self, state_dict)
pulid.py:45
↓ 1 callersMethod__init__
( self, dim, pt_seq_len, ft_seq_len=None, custom_freqs = None,
eva_clip/rope.py:31
↓ 1 callersMethod__init__
(self, use_pooler_output=True)
eva_clip/hf_model.py:60
↓ 1 callersMethod__init__
( self, embed_dim: int, vision_cfg: CLIPVisionCfg, text_cfg: C
eva_clip/model.py:211
↓ 1 callersFunction_camel2snake
(s)
eva_clip/hf_model.py:31
↓ 1 callersFunction_in_projection_packed
https://github.com/pytorch/pytorch/blob/db2a237763eb8693a20788be94f8c192e762baa8/torch/nn/functional.py#L4726
eva_clip/transformer.py:119
↓ 1 callersFunction_natural_key
(string_)
eva_clip/factory.py:25
↓ 1 callersMethodattention
(self, x: torch.Tensor, attn_mask: Optional[torch.Tensor] = None)
eva_clip/transformer.py:474
↓ 1 callersMethodbpe
(self, token)
eva_clip/tokenizer.py:98
↓ 1 callersMethodbuild_attention_mask
(self)
eva_clip/transformer.py:714
↓ 1 callersFunctionconvert_to_custom_text_state_dict
(state_dict: dict)
eva_clip/model.py:347
↓ 1 callersFunctionconvert_weights_to_lp
Convert applicable model parameters to low-precision (bf16 or fp16)
eva_clip/model.py:315
↓ 1 callersFunctioncreate_model_and_transforms
( model_name: str, pretrained: Optional[str] = None, precision: str = 'fp32',
eva_clip/factory.py:358
↓ 1 callersMethoddecode
(self, tokens)
eva_clip/tokenizer.py:147
↓ 1 callersFunctiondefault_bpe
()
eva_clip/tokenizer.py:21
↓ 1 callersMethodencode
(self, text)
eva_clip/tokenizer.py:139
↓ 1 callersMethodencode_image
(self, image, normalize: bool = False)
eva_clip/model.py:246
↓ 1 callersMethodencode_image
(self, image, normalize: bool = False)
eva_clip/model.py:301
↓ 1 callersMethodencode_text
(self, text, normalize: bool = False)
eva_clip/model.py:250
↓ 1 callersMethodencode_text
(self, text, normalize: bool = False)
eva_clip/model.py:305
↓ 1 callersMethodfix_init_weight
(self)
eva_clip/eva_vit_model.py:447
↓ 1 callersFunctiongather_features
( image_features, text_features, local_loss=False, gather_with_grad=False,
eva_clip/loss.py:21
↓ 1 callersFunctiongeometric_progression
(a, r, n)
eva_clip/utils.py:162
↓ 1 callersFunctionimage_to_tensor
(image)
pulid.py:58
↓ 1 callersMethodinit_id_adapter
(self)
pulid.py:36
↓ 1 callersMethodinit_parameters
(self)
eva_clip/modified_resnet.py:141
↓ 1 callersMethodinit_parameters
(self)
eva_clip/transformer.py:686
↓ 1 callersFunctionis_global_master
(args)
eva_clip/utils.py:293
↓ 1 callersFunctionis_local_master
(args)
eva_clip/utils.py:296
↓ 1 callersFunctionis_pretrained_cfg
(model: str, tag: str)
eva_clip/pretrained.py:221
↓ 1 callersFunctionlist_models
enumerate available model architectures based on config files
eva_clip/factory.py:53
↓ 1 callersFunctionlist_openai_models
Returns the names of available CLIP models
eva_clip/openai.py:18
↓ 1 callersFunctionlist_pretrained_models_by_tag
return all models having the specified pretrain tag
eva_clip/pretrained.py:203
↓ 1 callersFunctionlist_pretrained_tags_by_model
return all pretrain tags for the specified model architecture
eva_clip/pretrained.py:213
↓ 1 callersFunctionload_checkpoint
(model, checkpoint_path, model_key="model|module|state_dict", strict=True)
eva_clip/factory.py:110
↓ 1 callersFunctionload_openai_model
Load a CLIP model Parameters ---------- name : str A model name listed by `clip.available_models()`, or the path to a model check
eva_clip/openai.py:23
↓ 1 callersFunctionload_pretrained_checkpoint
( model, visual_checkpoint_path, text_checkpoint_path, strict=True, vi
eva_clip/factory.py:163
↓ 1 callersMethodmask
(self, input_ids, vocab_size, device, targets=None, masked_indices=None, probability_matrix=None)
eva_clip/hf_model.py:152
↓ 1 callersFunctionresize_clip_pos_embed
(state_dict, model, interpolation: str = 'bicubic', seq_dim=1)
eva_clip/utils.py:13
↓ 1 callersFunctionresize_eva_pos_embed
(state_dict, model, interpolation: str = 'bicubic', seq_dim=1)
eva_clip/utils.py:109
↓ 1 callersFunctionresize_evaclip_pos_embed
(state_dict, model, interpolation: str = 'bicubic', seq_dim=1)
eva_clip/utils.py:78
↓ 1 callersFunctionresize_visual_pos_embed
(state_dict, model, interpolation: str = 'bicubic', seq_dim=1)
eva_clip/utils.py:46
↓ 1 callersMethodstem
(self, x)
eva_clip/modified_resnet.py:166
↓ 1 callersFunctiontensor_to_image
(tensor)
pulid.py:53
↓ 1 callersFunctiontensor_to_size
(source, dest_size)
pulid.py:63
↓ 1 callersFunctionto_gray
(img)
pulid.py:187
MethodINPUT_TYPES
(s)
pulid.py:200
MethodINPUT_TYPES
(s)
pulid.py:228
MethodINPUT_TYPES
(s)
pulid.py:247
MethodINPUT_TYPES
(s)
pulid.py:275
MethodINPUT_TYPES
(s)
pulid.py:466
Method__call__
(self, q, k, v, extra_options)
pulid.py:106
Method__call__
(self, texts:Union[str, List[str]], context_length:int=77)
eva_clip/tokenizer.py:194
Method__init__
(self, width=1280, context_dim=2048, num_token=5)
encoders.py:5
Method__init__
(self, model)
pulid.py:28
Method__init__
(self, callback=None, **kwargs)
pulid.py:95
Method__init__
( self, local_loss=False, gather_with_grad=False, cache_labels
eva_clip/loss.py:72
Method__init__
( self, dim, pt_seq_len, ft_seq_len=None, custom_freqs = None,
eva_clip/rope.py:80
next →1–100 of 214, ranked by callers