Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ToTheBeginning/PuLID
/ functions
Functions
316 in github.com/ToTheBeginning/PuLID
⨍
Functions
316
◇
Types & classes
80
Function
add_model_config
add model config path or file and update registry
eva_clip/factory.py:58
Method
backward
(ctx, grad_output)
eva_clip/utils.py:319
Function
create_model_from_pretrained
( model_name: str, pretrained: str, precision: str = 'fp32', device: Union[str
eva_clip/factory.py:469
Function
create_transforms
( model_name: str, pretrained: Optional[str] = None, precision: str = 'fp32',
eva_clip/factory.py:413
Function
drop_seq_token
(seq, drop_rate=0.5)
pulid/utils.py:44
Method
extra_repr
(self)
eva_clip/eva_vit_model.py:43
Method
forward
( self, img: Tensor, img_ids: Tensor, txt: Tensor, txt_ids: Tensor,
flux/model.py:87
Method
forward
(self, ids: Tensor)
flux/modules/layers.py:18
Method
forward
(self, x: Tensor)
flux/modules/layers.py:59
Method
forward
(self, x: Tensor)
flux/modules/layers.py:68
Method
forward
(self, q: Tensor, k: Tensor, v: Tensor)
flux/modules/layers.py:81
Method
forward
(self, x: Tensor, pe: Tensor)
flux/modules/layers.py:97
Method
forward
(self, vec: Tensor)
flux/modules/layers.py:120
Method
forward
(self, img: Tensor, txt: Tensor, vec: Tensor, pe: Tensor)
flux/modules/layers.py:158
Method
forward
(self, x: Tensor, vec: Tensor, pe: Tensor)
flux/modules/layers.py:227
Method
forward
(self, x: Tensor, vec: Tensor)
flux/modules/layers.py:249
Method
forward
(self, text: list[str])
flux/modules/conditioner.py:21
Method
forward
(self, x: Tensor)
flux/modules/autoencoder.py:51
Method
forward
(self, x)
flux/modules/autoencoder.py:69
Method
forward
(self, x: Tensor)
flux/modules/autoencoder.py:91
Method
forward
(self, x: Tensor)
flux/modules/autoencoder.py:103
Method
forward
(self, x: Tensor)
flux/modules/autoencoder.py:159
Method
forward
(self, z: Tensor)
flux/modules/autoencoder.py:237
Method
forward
(self, z: Tensor)
flux/modules/autoencoder.py:268
Method
forward
(self, x: Tensor)
flux/modules/autoencoder.py:311
Method
forward
(self, x, y)
pulid/encoders.py:51
Method
forward
Args: x (torch.Tensor): image features shape (b, n1, D) latent (torch.Tensor): latent features
pulid/encoders_transformer.py:44
Method
forward
Args: x (torch.Tensor): image features shape (b, n1, D) latent (torch.Tensor): latent features
pulid/encoders_transformer.py:90
Method
forward
(self, x, y)
pulid/encoders_transformer.py:189
Method
forward
(self, image_features, text_features, logit_scale=1.)
eva_clip/loss.py:95
Method
forward
(self, t, start_index = 0)
eva_clip/rope.py:70
Method
forward
(self, t, patch_indices_keep=None)
eva_clip/rope.py:121
Method
forward
(ctx, tensor, rank, world_size)
eva_clip/utils.py:311
Method
forward
(self, x: torch.Tensor)
eva_clip/modified_resnet.py:42
Method
forward
(self, x)
eva_clip/modified_resnet.py:68
Method
forward
(self, x)
eva_clip/modified_resnet.py:173
Method
forward
(self, img)
eva_clip/transform.py:24
Method
forward
(self, x)
eva_clip/timm_model.py:119
Method
forward
(self, x:BaseModelOutput, attention_mask:TensorType)
eva_clip/hf_model.py:46
Method
forward
(self, x:BaseModelOutput, attention_mask:TensorType)
eva_clip/hf_model.py:53
Method
forward
(self, x:BaseModelOutput, attention_mask:TensorType)
eva_clip/hf_model.py:65
Method
forward
(self, x:TensorType)
eva_clip/hf_model.py:213
Method
forward
(self, x: torch.Tensor)
eva_clip/transformer.py:41
Method
forward
(self, x: torch.Tensor)
eva_clip/transformer.py:55
Method
forward
(self, x: torch.Tensor)
eva_clip/transformer.py:62
Method
forward
(self, x)
eva_clip/transformer.py:72
Method
forward
(self, x)
eva_clip/transformer.py:87
Method
forward
(self, x, attn_mask: Optional[torch.Tensor] = None)
eva_clip/transformer.py:195
Method
forward
(self, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, attn_mask: Optional[torch.Tensor] = None)
eva_clip/transformer.py:286
Method
forward
(self, q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, attn_mask: Optional[torch.Tensor] = None)
eva_clip/transformer.py:384
Method
forward
(self, q: torch.Tensor, k: torch.Tensor = None, v: torch.Tensor = None, attn_mask: Optional[torch.Tensor] = No
eva_clip/transformer.py:432
Method
forward
(self, x: torch.Tensor, attn_mask: Optional[torch.Tensor] = None)
eva_clip/transformer.py:480
Method
forward
(self, x: torch.Tensor, attn_mask: Optional[torch.Tensor] = None)
eva_clip/transformer.py:511
Method
forward
(self, x: torch.Tensor, return_all_features: bool=False)
eva_clip/transformer.py:611
Method
forward
(self, text, return_all_features: bool=False)
eva_clip/transformer.py:722
Method
forward
(self, x)
eva_clip/eva_vit_model.py:40
Method
forward
(self, x)
eva_clip/eva_vit_model.py:70
Method
forward
(self, x)
eva_clip/eva_vit_model.py:97
Method
forward
(self, x, rel_pos_bias=None, attn_mask=None)
eva_clip/eva_vit_model.py:173
Method
forward
(self, x, rel_pos_bias=None, attn_mask=None)
eva_clip/eva_vit_model.py:287
Method
forward
(self, x, **kwargs)
eva_clip/eva_vit_model.py:320
Method
forward
(self)
eva_clip/eva_vit_model.py:358
Method
forward
(self, x, return_all_features=False, return_hidden=False, shuffle=False)
eva_clip/eva_vit_model.py:541
Method
forward
(self, image, text)
eva_clip/model.py:264
Method
forward
(self, image, text)
eva_clip/model.py:309
Method
forward_mlm
(self, input_ids, image_embeds, mlm_probability=0.25)
eva_clip/hf_model.py:177
Method
generate_image
( self, width, height, num_steps, start_step,
app_flux.py:55
Method
get_cast_dtype
(self)
eva_clip/transformer.py:429
Method
get_cast_dtype
(self)
eva_clip/eva_vit_model.py:458
Method
get_classifier
(self)
eva_clip/eva_vit_model.py:486
Method
get_id_embedding
Args: image: numpy rgb image, range [0, 255]
pulid/pipeline_flux.py:120
Method
get_id_embedding
Args: image in image_list: numpy rgb image, range [0, 255]
pulid/pipeline_v1_1.py:171
Method
get_num_layers
(self)
eva_clip/hf_model.py:242
Method
get_num_layers
(self)
eva_clip/transformer.py:600
Method
get_num_layers
(self)
eva_clip/transformer.py:711
Method
get_num_layers
(self)
eva_clip/eva_vit_model.py:470
Function
get_tokenizer
(model_name)
eva_clip/factory.py:73
Function
import_model_class_from_model_name_or_path
( pretrained_model_name_or_path: str, revision: str, subfolder: str = "text_encoder" )
pulid/utils.py:52
Method
inference
( self, prompt, size, prompt_n='', id_embedding=None, uncond_i
pulid/pipeline_v1_1.py:270
Method
init_parameters
(self)
eva_clip/hf_model.py:247
Function
instantiate_from_config
(config)
pulid/utils.py:28
Function
is_logging
(args)
eva_clip/utils.py:292
Function
is_master
(args, local=False)
eva_clip/utils.py:299
Function
list_pretrained
returns list of pretrained models Returns a tuple (model_name, pretrain_tag) by default or 'name:tag' if as_str == True
eva_clip/pretrained.py:196
Method
load_pretrain
(self, pretrain_path=None, version='v0.9.0')
pulid/pipeline_flux.py:94
Method
lock
(self, unlocked_groups=0, freeze_bn_stats=False)
eva_clip/modified_resnet.py:154
Method
lock
(self, unlocked_layers:int=0, freeze_layer_norm:bool=True)
eva_clip/hf_model.py:220
Method
lock
(self, unlocked_groups=0, freeze_bn_stats=False)
eva_clip/transformer.py:567
Method
lock
(self, unlocked_groups=0, freeze_bn_stats=False)
eva_clip/eva_vit_model.py:473
Method
lock_image_tower
(self, unlocked_groups=0, freeze_bn_stats=False)
eva_clip/model.py:233
Method
lock_image_tower
(self, unlocked_groups=0, freeze_bn_stats=False)
eva_clip/model.py:285
Method
lock_text_tower
(self, unlocked_layers:int=0, freeze_layer_norm:bool=True)
eva_clip/model.py:289
Method
no_weight_decay
(self)
eva_clip/transformer.py:608
Method
no_weight_decay
(self)
eva_clip/transformer.py:707
Method
no_weight_decay
(self)
eva_clip/eva_vit_model.py:483
Method
no_weight_decay
(self)
eva_clip/model.py:243
Method
no_weight_decay
(self)
eva_clip/model.py:298
Function
parse
(x)
eva_clip/utils.py:278
Function
register_pooler
Decorator registering pooler class
eva_clip/hf_model.py:37
Method
rescale
(param, layer_id)
eva_clip/eva_vit_model.py:448
← previous
next →
201–300 of 316, ranked by callers