MCPcopy Create free account

hub / github.com/ToTheBeginning/PuLID / functions

Functions316 in github.com/ToTheBeginning/PuLID

↓ 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
↓ 8 callersMethod__init__
(self, dim: int)
flux/modules/layers.py:76
↓ 7 callersMethod__init__
( self, resolution: int, in_channels: int, ch: int, ch_mult: list[int]
flux/modules/autoencoder.py:110
↓ 7 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_
eva_clip/eva_vit_model.py:48
↓ 6 callersFunctionreshape_tensor
(x, heads)
pulid/encoders_transformer.py:18
↓ 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
↓ 5 callersFunctionresize_numpy_image_long
(image, resize_long_edge=768)
pulid/utils.py:72
↓ 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 callersMethodget_id_embedding
Args: image: numpy rgb image, range [0, 255]
pulid/pipeline.py:144
↓ 4 callersFunctionget_pretrained_cfg
(model: str, tag: str)
eva_clip/pretrained.py:227
↓ 4 callersFunctionswish
(x: Tensor)
flux/modules/autoencoder.py:21
↓ 3 callersMethod__init__
(self)
pulid/attention_processor.py:12
↓ 3 callersFunctionattention
(q: Tensor, k: Tensor, v: Tensor, pe: Tensor)
flux/math.py:6
↓ 3 callersFunctioncreate_model
( model_name: str, pretrained: Optional[str] = None, precision: str = 'fp32',
eva_clip/factory.py:211
↓ 3 callersFunctioncreate_model_and_transforms
( model_name: str, pretrained: Optional[str] = None, precision: str = 'fp32',
eva_clip/factory.py:358
↓ 3 callersMethoddecode
(self, tokens)
eva_clip/tokenizer.py:147
↓ 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 callersFunctionimg2tensor
Numpy array to tensor. Args: imgs (list[ndarray] | ndarray): Input images. bgr2rgb (bool): Whether to change bgr to rgb.
pulid/utils.py:84
↓ 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 callersFunctiontensor2img
Convert torch Tensors into image numpy arrays. After clamping to [min, max], values will be normalized to [0, 1]. Args: tensor (Tens
pulid/utils.py:112
↓ 2 callersMethod__init__
( self, dim=1024, depth=10, dim_head=64, heads=16,
pulid/encoders_transformer.py:130
↓ 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 callersFunction_totensor
(img, bgr2rgb, float32)
pulid/utils.py:97
↓ 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 callersMethodcomponents_to_device
(self, device)
pulid/pipeline_flux.py:87
↓ 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_ancestral_step
Calculates the noise level (sigma_down) to step down to and the amount of noise to add (sigma_up) when doing an ancestral sampling step.
pulid/utils.py:191
↓ 2 callersFunctionget_cast_dtype
(precision: str)
eva_clip/model.py:83
↓ 2 callersMethodget_cast_dtype
(self)
eva_clip/transformer.py:508
↓ 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 callersMethodinference
(self, prompt, size, prompt_n='', image_embedding=None, id_scale=1.0, guidance_scale=1.2, steps=4)
pulid/pipeline.py:216
↓ 2 callersFunctionis_torch2_available
()
pulid/utils.py:24
↓ 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 callersMethodload_pretrain
(self)
pulid/pipeline.py:124
↓ 2 callersFunctionpatch_device
(module)
eva_clip/openai.py:97
↓ 2 callersFunctionpatch_float
(module)
eva_clip/openai.py:121
↓ 2 callersFunctionprepare
(t5: HFEmbedder, clip: HFEmbedder, img: Tensor, prompt: str)
flux/sampling.py:32
↓ 2 callersFunctionprint_load_warning
(missing: list[str], unexpected: list[str])
flux/util.py:135
↓ 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 callersMethodsort
(a, b)
pulid/utils.py:225
↓ 2 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param t: a 1-D Tensor of N indices, one per batch element. These may be fractio
flux/modules/layers.py:28
↓ 2 callersFunctionwhitespace_clean
(text)
eva_clip/tokenizer.py:66
↓ 1 callersFunctionFeedForward
(dim, mult=4)
pulid/encoders_transformer.py:8
↓ 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 callersFunctionappend_dims
Appends dimensions to the end of a tensor until it has target_dims dimensions.
pulid/utils.py:175
↓ 1 callersFunctionapply_rope
(xq: Tensor, xk: Tensor, freqs_cis: Tensor)
flux/math.py:26
↓ 1 callersMethodattention
(self, h_: Tensor)
flux/modules/autoencoder.py:37
↓ 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 callersMethodcomponents_to_gpu
(self)
flux/model.py:155
↓ 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_demo
(args, model_name: str, device: str = "cuda" if torch.cuda.is_available() else "cpu", offload:
app_flux.py:195
↓ 1 callersMethoddecode
(self, z: Tensor)
flux/modules/autoencoder.py:307
↓ 1 callersFunctiondefault_bpe
()
eva_clip/tokenizer.py:21
↓ 1 callersFunctiondenoise
( model: Flux, # model input img: Tensor, img_ids: Tensor, txt: Tensor, txt_ids: Tenso
flux/sampling.py:97
↓ 1 callersMethodencode
(self, x: Tensor)
flux/modules/autoencoder.py:302
↓ 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 callersFunctionget_lin_function
( x1: float = 256, y1: float = 0.5, x2: float = 4096, y2: float = 1.15 )
flux/sampling.py:70
↓ 1 callersFunctionget_models
(name: str, device: torch.device, offload: bool, fp8: bool)
app_flux.py:21
↓ 1 callersFunctionget_noise
( num_samples: int, height: int, width: int, device: torch.device, dtype: torch.dtype,
flux/sampling.py:12
↓ 1 callersFunctionget_obj_from_str
(string, reload=False)
pulid/utils.py:36
↓ 1 callersFunctionget_schedule
( num_steps: int, image_seq_len: int, base_shift: float = 0.5, max_shift: float = 1.15, sh
flux/sampling.py:78
↓ 1 callersMethodget_sigmas_karras
(self, n, rho=7.0)
pulid/pipeline_v1_1.py:122
↓ 1 callersMethodhack_unet_attn_layers
(self, unet)
pulid/pipeline_v1_1.py:129
↓ 1 callersMethodhack_unet_attn_layers
(self, unet)
pulid/pipeline.py:102
↓ 1 callersMethodinit_parameters
(self)
eva_clip/modified_resnet.py:141
next →1–100 of 316, ranked by callers