MCPcopy Create free account

hub / github.com/XLabs-AI/x-flux-comfyui / functions

Functions198 in github.com/XLabs-AI/x-flux-comfyui

Method__init__
(self, cross_attention_dim=1024, clip_embeddings_dim=1024, clip_extra_context_tokens=4)
layers.py:280
Method__init__
(self,)
layers.py:299
Method__init__
(self)
utils.py:193
Method__init__
( self, controlnet, controlnet_cond, controlnet_gs, controlnet_start_step,
utils.py:267
Method__init__
(self, params: FluxParams)
model_init.py:56
Method__init__
(self, params: FluxParams, controlnet_depth=2)
xflux/src/flux/controlnet.py:39
Method__init__
(self, model_type, device, offload: bool = False, seed: int = None)
xflux/src/flux/xflux_pipeline.py:14
Method__init__
(self, name: str, device: str)
xflux/src/flux/util.py:61
Method__init__
(self, watermark)
xflux/src/flux/util.py:311
Method__init__
(self, params: FluxParams)
xflux/src/flux/model.py:34
Method__init__
(self, dim: int, theta: int, axes_dim: list[int])
xflux/src/flux/modules/layers.py:12
Method__init__
(self, in_dim: int, hidden_dim: int)
xflux/src/flux/modules/layers.py:53
Method__init__
(self, dim: int)
xflux/src/flux/modules/layers.py:64
Method__init__
(self, in_features, out_features, rank=4, network_alpha=None, device=None, dtype=None)
xflux/src/flux/modules/layers.py:87
Method__init__
(self, dim: int, rank=4, network_alpha=None, lora_weight=1)
xflux/src/flux/modules/layers.py:125
Method__init__
(self, dim: int, num_heads: int = 8, qkv_bias: bool = False)
xflux/src/flux/modules/layers.py:143
Method__init__
(self, dim: int, double: bool)
xflux/src/flux/modules/layers.py:163
Method__init__
(self, dim: int, rank=4, network_alpha=None, lora_weight=1)
xflux/src/flux/modules/layers.py:178
Method__init__
(self)
xflux/src/flux/modules/layers.py:222
Method__init__
(self, hidden_size: int, num_heads: int, mlp_ratio: float, qkv_bias: bool = False)
xflux/src/flux/modules/layers.py:261
Method__init__
( self, hidden_size: int, num_heads: int, mlp_ratio: float = 4.0, qk_s
xflux/src/flux/modules/layers.py:305
Method__init__
(self, hidden_size: int, patch_size: int, out_channels: int)
xflux/src/flux/modules/layers.py:348
Method__init__
(self, version: str, max_length: int, **hf_kwargs)
xflux/src/flux/modules/conditioner.py:7
Method__init__
(self, in_channels: int)
xflux/src/flux/modules/autoencoder.py:26
Method__init__
(self, in_channels: int, out_channels: int)
xflux/src/flux/modules/autoencoder.py:56
Method__init__
(self, in_channels: int)
xflux/src/flux/modules/autoencoder.py:86
Method__init__
(self, in_channels: int)
xflux/src/flux/modules/autoencoder.py:99
Method__init__
( self, ch: int, out_ch: int, ch_mult: list[int], num_res_blocks: int,
xflux/src/flux/modules/autoencoder.py:184
Method__init__
(self, sample: bool = True, chunk_dim: int = 1)
xflux/src/flux/modules/autoencoder.py:263
Method__init__
(self, params: AutoEncoderParams)
xflux/src/flux/modules/autoencoder.py:278
Method_set_gradient_checkpointing
(self, module, value=False)
model_init.py:81
Method_set_gradient_checkpointing
(self, module, value=False)
xflux/src/flux/controlnet.py:101
Method_set_gradient_checkpointing
(self, module, value=False)
xflux/src/flux/model.py:80
Methodapplymodel
(self, model, ip_adapter_flux, image, ip_scale)
nodes.py:563
Methodapplymodel
(self, model, ip_adapter_flux, image, begin_strength, end_strength, smothing_type)
nodes.py:664
Methodattn_processors
(self)
model_init.py:86
Methodattn_processors
(self)
xflux/src/flux/controlnet.py:107
Methodattn_processors
(self)
xflux/src/flux/model.py:85
Functioncopy_model
(orig, new)
utils.py:39
Methodcreate_custom_forward
(module, return_dict=None)
model_init.py:169
Methodcreate_custom_forward
(module, return_dict=None)
xflux/src/flux/controlnet.py:195
Methodcreate_custom_forward
(module, return_dict=None)
xflux/src/flux/model.py:168
Methodcustom_forward
(*inputs)
model_init.py:170
Methodcustom_forward
(*inputs)
xflux/src/flux/controlnet.py:196
Methodcustom_forward
(*inputs)
xflux/src/flux/model.py:169
Functiondouble_blocks_init
(model, params, dtype)
model_init.py:17
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors)
model_init.py:90
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors)
xflux/src/flux/controlnet.py:111
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors)
xflux/src/flux/model.py:89
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
model_init.py:125
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
xflux/src/flux/controlnet.py:146
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
xflux/src/flux/model.py:124
Methodforward
(self, attn, img, txt, vec, pe, **attention_kwargs)
layers.py:86
Methodforward
(self, attn, img, txt, vec, pe, **attention_kwargs)
layers.py:148
Methodforward
(self, attn, img, txt, vec, pe, **attention_kwargs)
layers.py:220
Methodforward
(self, img_q, attn)
layers.py:253
Methodforward
(self, image_embeds)
layers.py:289
Methodforward
(self, attn, img, txt, vec, pe, **attention_kwargs)
layers.py:344
Methodforward
( self, img: Tensor, img_ids: Tensor, txt: Tensor, txt_ids: Tensor,
model_init.py:138
Methodforward
( self, img: Tensor, img_ids: Tensor, controlnet_cond: Tensor, txt: Te
xflux/src/flux/controlnet.py:159
Methodforward
( self, img: Tensor, img_ids: Tensor, txt: Tensor, txt_ids: Tensor,
xflux/src/flux/model.py:137
Methodforward
(self, ids: Tensor)
xflux/src/flux/modules/layers.py:18
Methodforward
(self, x: Tensor)
xflux/src/flux/modules/layers.py:59
Methodforward
(self, x: Tensor)
xflux/src/flux/modules/layers.py:68
Methodforward
(self, q: Tensor, k: Tensor, v: Tensor)
xflux/src/flux/modules/layers.py:81
Methodforward
(self, hidden_states)
xflux/src/flux/modules/layers.py:100
Methodforward
()
xflux/src/flux/modules/layers.py:151
Methodforward
(self, vec: Tensor)
xflux/src/flux/modules/layers.py:169
Methodforward
(self, attn, img, txt, vec, pe, **attention_kwargs)
xflux/src/flux/modules/layers.py:186
Methodforward
(self, img: Tensor, txt: Tensor, vec: Tensor, pe: Tensor)
xflux/src/flux/modules/layers.py:296
Methodforward
(self, x: Tensor, vec: Tensor, pe: Tensor)
xflux/src/flux/modules/layers.py:332
Methodforward
(self, x: Tensor, vec: Tensor)
xflux/src/flux/modules/layers.py:354
Methodforward
(self, text: list[str])
xflux/src/flux/modules/conditioner.py:22
Methodforward
(self, x: Tensor)
xflux/src/flux/modules/autoencoder.py:51
Methodforward
(self, x)
xflux/src/flux/modules/autoencoder.py:69
Methodforward
(self, x: Tensor)
xflux/src/flux/modules/autoencoder.py:91
Methodforward
(self, x: Tensor)
xflux/src/flux/modules/autoencoder.py:103
Methodforward
(self, x: Tensor)
xflux/src/flux/modules/autoencoder.py:159
Methodforward
(self, z: Tensor)
xflux/src/flux/modules/autoencoder.py:237
Methodforward
(self, z: Tensor)
xflux/src/flux/modules/autoencoder.py:268
Methodforward
(self, x: Tensor)
xflux/src/flux/modules/autoencoder.py:311
Functionload_flow_model2
(name: str, device: str | torch.device = "cuda", hf_download: bool = True)
xflux/src/flux/util.py:250
Methodloadmodel
(self, model, lora_name, strength_model)
nodes.py:103
Methodloadmodel
(self, model_name, controlnet_path)
nodes.py:222
Methodloadmodel
(self, ipadatper, clip_vision, provider)
nodes.py:503
Methodprepare
(self, controlnet, image, strength, controlnet_condition = None)
nodes.py:254
Methodprepare
(self, controlnet, image, strength, start, end, controlnet_condition = None)
nodes.py:298
Methodprepare_controlnet_condition
(controlnet_condition)
nodes.py:426
Functionresize_image
(input_image, resolution)
xflux/src/flux/annotator/util.py:28
Methodsampling
(self, model, conditioning, neg_conditioning, noise_seed, steps, timestep_to_start_cfg, true_
nodes.py:342
Methodscale_txt
(self, txt)
layers.py:315
Functionset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or only `Attenti
utils.py:137
Methodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
model_init.py:104
Methodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
xflux/src/flux/controlnet.py:125
Methodset_controlnet
(self, control_type: str, local_path: str = None, repo_id: str = None, name: str = None)
xflux/src/flux/xflux_pipeline.py:60
Methodset_lora
(self, local_path: str = None, repo_id: str = None, name: str = None, lora_weight: int = 0.7)
xflux/src/flux/xflux_pipeline.py:34
Methodset_lora_from_collection
(self, lora_type: str = "realism", lora_weight: int = 0.7)
xflux/src/flux/xflux_pipeline.py:39
Functionsingle_blocks_init
(model, params, dtype)
model_init.py:32
← previous101–198 of 198, ranked by callers