MCPcopy Create free account

hub / github.com/KohakuBlueleaf/LyCORIS / functions

Functions372 in github.com/KohakuBlueleaf/LyCORIS

↓ 1 callersMethodbypass_forward
(self, x, scale=1)
lycoris/modules/ia3.py:126
↓ 1 callersMethodbypass_forward
(self, x, scale=1)
lycoris/modules/boft.py:241
↓ 1 callersMethodbypass_forward
(self, x, scale=1, rank=None)
lycoris/modules/dylora.py:140
↓ 1 callersMethodbypass_forward
(self, x, scale=1)
lycoris/modules/lokr.py:540
↓ 1 callersMethodbypass_forward
(self, x, scale=1)
lycoris/modules/loha.py:298
↓ 1 callersMethodbypass_forward
(self, x, scale=1)
lycoris/modules/locon.py:306
↓ 1 callersMethodbypass_forward
(self, x, scale=1)
lycoris/modules/diag_oft.py:203
↓ 1 callersMethodbypass_forward
(self, x, scale=1)
lycoris/modules/glora.py:243
↓ 1 callersMethodbypass_forward_diff
(self, x, scale=1, rank=None)
lycoris/modules/dylora.py:130
↓ 1 callersMethodbypass_forward_diff
(self, h, scale=1)
lycoris/modules/lokr.py:468
↓ 1 callersMethodbypass_forward_diff
(self, x, scale=1)
lycoris/modules/loha.py:294
↓ 1 callersMethodbypass_forward_diff
(self, x, scale=1)
lycoris/modules/locon.py:286
↓ 1 callersMethodbypass_forward_diff
Compute LoRA contribution in bypass mode.
lycoris/modules/tlora.py:484
↓ 1 callersMethodconvert_from_webui
( self, state, network_type="lora", auto_scale_alpha=False, sdxl=False )
tools/batch_hcp_convert.py:49
↓ 1 callersMethodconvert_from_webui_xl_unet_
( self, state, network_type, prefix, com_name, com_name_tmp )
tools/batch_hcp_convert.py:217
↓ 1 callersMethodconvert_to_webui_xl_
(self, state, network_type, prefix)
tools/batch_hcp_convert.py:158
↓ 1 callersFunctioncreate_network
( multiplier, network_dim, network_alpha, vae, text_encoder, unet, warn_on_unmatched=True, **kwargs )
lycoris/kohya.py:30
↓ 1 callersFunctioncreate_network_from_weights
( multiplier, file, vae, text_encoder, unet, weights_sd=None, for_inference=False,
lycoris/kohya.py:151
↓ 1 callersMethodcustom_state_dict
(self)
lycoris/modules/base.py:38
↓ 1 callersFunctiondescribe_stack
(summary: StackSummary)
example/stacked_wrapper_demo.py:102
↓ 1 callersFunctiondiff_weight
### diff_weight Get ΔW = BA, where BA is low rank decomposition Args: wegihts (tuple[torch.Tensor]): (w1d, w2d, w1u, w2u[, t1, t2])
lycoris/functional/loha.py:119
↓ 1 callersFunctionextract_linear
( weight: Union[torch.Tensor, nn.Parameter], mode="fixed", mode_param=0, device="cpu", )
lycoris/utils/__init__.py:109
↓ 1 callersMethodextract_state_dict
(cls, state_dict, lora_name)
lycoris/modules/base.py:269
↓ 1 callersMethodfind_conf_for_name
( self, name: str, )
lycoris/wrapper.py:546
↓ 1 callersMethodfind_conf_for_name
( self, name: str, )
lycoris/kohya.py:631
↓ 1 callersMethodfrom_dict
( cls, data: Mapping[str, Any], *, strict: bool = False )
lycoris/config_sdk.py:241
↓ 1 callersMethodfrom_mapping
(cls, mapping: Mapping[str, Any])
lycoris/config_sdk.py:191
↓ 1 callersFunctiongather_files_from_list
Gather files from given paths based on specific extensions. Args: paths (List[str]): A list of paths which can be files or directories.
tools/batch_hcp_convert.py:391
↓ 1 callersFunctionget_args
()
tools/merge.py:7
↓ 1 callersFunctionget_args
()
tools/pack_bundle.py:9
↓ 1 callersFunctionget_args
()
tools/extract_locon.py:7
↓ 1 callersFunctionget_args
()
tools/sdxl_emb.py:7
↓ 1 callersMethodget_diff_weight
(self, multiplier=1, shape=None, device=None, rank=None)
lycoris/modules/dylora.py:112
↓ 1 callersMethodget_diff_weight
(self, multiplier=1, shape=None, device=None)
lycoris/modules/lokr.py:383
↓ 1 callersMethodget_diff_weight
(self, multiplier=1, shape=None, device=None)
lycoris/modules/loha.py:228
↓ 1 callersMethodget_diff_weight
(self, multiplier=1, shape=None, device=None)
lycoris/modules/locon.py:221
↓ 1 callersMethodget_diff_weight
(self, multiplier=1.0, shape=None, device=None)
lycoris/modules/base.py:405
↓ 1 callersMethodget_diff_weight
(self, multiplier=1, shape=None, device=None)
lycoris/modules/norms.py:94
↓ 1 callersMethodget_diff_weight
(self, multiplier=1, shape=None, device=None)
lycoris/modules/full.py:168
↓ 1 callersFunctionget_lora_embs_step_correspondence
Associate LoRA model files with embedding files based on their step count. This function takes in lists of LoRA file paths and embedding file pat
tools/batch_bundle_convert.py:148
↓ 1 callersMethodget_merged_weight
(self, multiplier=1, shape=None, device=None)
lycoris/modules/ia3.py:110
↓ 1 callersMethodget_merged_weight
(self, multiplier=1, shape=None, device=None, rank=None)
lycoris/modules/dylora.py:126
↓ 1 callersFunctionget_network_types
(sd_unet, sd_te)
tools/batch_hcp_convert.py:470
↓ 1 callersFunctionget_timestep_mask
Get the current timestep mask, or None if not set.
lycoris/modules/tlora.py:48
↓ 1 callersFunctionget_unet_te_pairs
Get unet and text encoder pairs from a list of files. Args: files (List[str]): A list of candidate file paths. Returns: Dict
tools/batch_hcp_convert.py:427
↓ 1 callersFunctionload_bytes_in_safetensors
(tensors)
lycoris/utils/__init__.py:19
↓ 1 callersFunctionlog_butterfly_factorize
(dim, factor, result)
lycoris/modules/boft.py:16
↓ 1 callersFunctionlog_bypass
()
lycoris/utils/quant.py:76
↓ 1 callersFunctionlog_bypass_override
()
lycoris/modules/full.py:11
↓ 1 callersFunctionlog_oft_factorize
(dim, factor, num, bdim)
lycoris/modules/diag_oft.py:13
↓ 1 callersFunctionlog_suspect
()
lycoris/utils/quant.py:83
↓ 1 callersFunctionlog_tlora_init
()
lycoris/modules/tlora.py:89
↓ 1 callersFunctionlog_wd
()
lycoris/modules/locon.py:14
↓ 1 callersFunctionmain
()
example/high_precision_merge_demo.py:61
↓ 1 callersFunctionmain
()
tools/merge.py:64
↓ 1 callersFunctionmain
()
tools/pack_bundle.py:56
↓ 1 callersFunctionmain
()
tools/extract_locon.py:134
↓ 1 callersFunctionmain
()
tools/sdxl_emb.py:43
↓ 1 callersMethodmake_module_from_state_dict
(cls, lora_name, orig_module, weight)
lycoris/modules/ia3.py:78
↓ 1 callersFunctionmake_sparse
(t: torch.Tensor, sparsity=0.95)
lycoris/utils/__init__.py:52
↓ 1 callersFunctionmake_weight
(w1d, w1u, w2d, w2u, scale)
lycoris/functional/loha.py:78
↓ 1 callersMethodmake_weight
(self, scale=1, device=None)
lycoris/modules/norms.py:70
↓ 1 callersMethodmake_weight
(self, device=None)
lycoris/modules/glora.py:181
↓ 1 callersFunctionmake_weight_tucker
(t1, w1d, w1u, t2, w2d, w2u, scale)
lycoris/functional/loha.py:82
↓ 1 callersFunctionmerge
(tes, unet, lyco_state_dict, scale: float = 1.0, device="cpu")
lycoris/utils/__init__.py:421
↓ 1 callersMethodmerge_to
(self, multiplier=1.0, *, precise: bool = False)
lycoris/modules/base.py:354
↓ 1 callersFunctionpack_bundle
(lora, emb_dict, verbose=False)
tools/batch_bundle_convert.py:32
↓ 1 callersMethodparametrize
(cls, org_module, attr, *args, **kwargs)
lycoris/modules/base.py:228
↓ 1 callersFunctionparse_args
()
example/stacked_wrapper_demo.py:185
↓ 1 callersFunctionprecalculate_safetensors_hashes
(state_dict)
lycoris/utils/__init__.py:33
↓ 1 callersFunctionprint_emb_information
(emb_dict)
tools/batch_bundle_convert.py:86
↓ 1 callersFunctionremove_wrappers
Remove selected wrappers, capture the output, then reapply them.
example/stacked_wrapper_demo.py:113
↓ 1 callersFunctionreset_preset
()
test/precision_merge_test.py:9
↓ 1 callersMethodset_loraplus_lr_ratio
( self, loraplus_lr_ratio, loraplus_unet_lr_ratio, loraplus_text_encoder_lr_ratio )
lycoris/kohya.py:722
↓ 1 callersFunctiontest_lycoris_compile
()
test/compile.py:27
↓ 1 callersFunctiontest_lycoris_restore
()
test/restore.py:25
↓ 1 callersFunctiontrain_on_mnist
(summary: StackSummary, *, data_root: str)
example/stacked_wrapper_demo.py:140
↓ 1 callersFunctiontucker_weight_from_conv
(up, down, mid)
lycoris/functional/general.py:84
↓ 1 callersFunctionunpack_bundle
(lora, verbose, step="", emb_format=".pt")
tools/batch_bundle_convert.py:51
↓ 1 callersMethodvalidate
(self)
lycoris/config_sdk.py:202
↓ 1 callersFunctionverify_stack
(model: nn.Module, seeds: list[int])
example/stacked_wrapper_demo.py:51
MethodI
(self)
lycoris/modules/boft.py:128
MethodI
(self)
lycoris/modules/diag_oft.py:115
Method__init__
(self)
example/standalone_example.py:19
Method__init__
(self)
example/stacked_wrapper_demo.py:19
Method__init__
(self, save_fp16=False)
tools/batch_hcp_convert.py:44
Method__init__
(self, base_model_path, device, save_fp16=False, sdxl=False)
tools/batch_hcp_convert.py:327
Method__init__
( self, module: nn.Module, multiplier=1.0, lora_dim=4, conv_lora_dim=4
lycoris/wrapper.py:232
Method__init__
( self, text_encoder, unet, multiplier=1.0, lora_dim=4, conv_l
lycoris/kohya.py:320
Method__init__
if alpha == 0 or None, alpha is rank (no scaling).
lycoris/modules/ia3.py:18
Method__init__
( self, lora_name, org_module: nn.Module, multiplier=1.0, lora_dim=4,
lycoris/modules/boft.py:51
Method__init__
if alpha == 0 or None, alpha is rank (no scaling).
lycoris/modules/dylora.py:19
Method__init__
( self, lora_name, org_module: nn.Module, multiplier=1.0, lora_dim=4,
lycoris/modules/lokr.py:45
Method__init__
( self, lora_name, org_module: nn.Module, multiplier=1.0, lora_dim=4,
lycoris/modules/loha.py:30
Method__init__
if alpha == 0 or None, alpha is rank (no scaling).
lycoris/modules/locon.py:38
Method__init__
if alpha == 0 or None, alpha is rank (no scaling).
lycoris/modules/base.py:90
Method__init__
( self, lora_name, org_module: nn.Module, multiplier=1.0, lora_dim=4,
lycoris/modules/diag_oft.py:36
Method__init__
Initialize T-LoRA module. Args: lora_name: Unique name for this LoRA module org_module: Original module to w
lycoris/modules/tlora.py:121
Method__init__
if alpha == 0 or None, alpha is rank (no scaling).
lycoris/modules/norms.py:17
Method__init__
( self, lora_name, org_module: nn.Module, multiplier=1.0, lora_dim=4,
lycoris/modules/full.py:30
← previousnext →101–200 of 372, ranked by callers