MCPcopy Create free account

hub / github.com/KohakuBlueleaf/LyCORIS / functions

Functions372 in github.com/KohakuBlueleaf/LyCORIS

Methodget_trainable_params
(self)
lycoris/kohya.py:816
Functioninfo_once
(msg)
lycoris/logging.py:41
Methodis_mergeable
(self)
lycoris/wrapper.py:592
Functionlist_algorithms
()
lycoris/config_sdk.py:318
Methodlist_algorithms
(self)
lycoris/config_sdk.py:302
Functionlist_builtin_presets
()
lycoris/config.py:196
Methodload_weight_hook
(self, module: nn.Module, incompatible_keys)
lycoris/modules/lokr.py:344
Methodload_weight_hook
(self, module: nn.Module, incompatible_keys)
lycoris/modules/loha.py:180
Methodload_weight_hook
(self, module: nn.Module, incompatible_keys)
lycoris/modules/locon.py:184
Methodload_weight_hook
(self, module, incompatible_keys)
lycoris/modules/base.py:35
Methodload_weight_hook
(self, module: nn.Module, incompatible_keys)
lycoris/modules/glora.py:167
Methodload_weight_prehook
( self, state_dict, prefix, local_metadata, strict, missing_ke
lycoris/modules/base.py:23
Methodload_weight_prehook
( self, state_dict, prefix, local_metadata, strict, missing_ke
lycoris/modules/full.py:134
Methodload_weights
(self, file)
lycoris/wrapper.py:564
Methodload_weights
(self, file)
lycoris/kohya.py:644
Methodmake_ckpt
(module)
lycoris/wrapper.py:628
Methodmake_module_from_state_dict
( cls, lora_name, orig_module, oft_blocks, rescale, alpha )
lycoris/modules/boft.py:110
Methodmake_module_from_state_dict
( cls, lora_name, orig_module, w1, w1a, w1b, w2,
lycoris/modules/lokr.py:247
Methodmake_module_from_state_dict
( cls, lora_name, orig_module, w1a, w1b, w2a, w2b, t1, t2, alpha, dora_scale )
lycoris/modules/loha.py:157
Methodmake_module_from_state_dict
( cls, lora_name, orig_module, up, down, mid, alpha, dora_scale )
lycoris/modules/locon.py:164
Methodmake_module_from_state_dict
(cls, lora_name, orig_module, *weights)
lycoris/modules/base.py:273
Methodmake_module_from_state_dict
( cls, lora_name, orig_module, oft_blocks, rescale, alpha )
lycoris/modules/diag_oft.py:97
Methodmake_module_from_state_dict
Reconstruct module from saved state dict.
lycoris/modules/tlora.py:340
Methodmake_module_from_state_dict
(cls, lora_name, orig_module, w_norm, b_norm)
lycoris/modules/norms.py:59
Methodmake_module_from_state_dict
(cls, lora_name, orig_module, diff, diff_b)
lycoris/modules/full.py:85
Methodmake_module_from_state_dict
( cls, lora_name, orig_module, a1, a2, b1, b2, bm, alpha )
lycoris/modules/glora.py:137
Methodmaybe_set
(key: str, value: Any)
lycoris/config_sdk.py:274
Methodmerge_to
(self, text_encoder, unet, weights_sd, dtype, device)
lycoris/kohya.py:686
Methodon_epoch_start
(self, *args)
lycoris/wrapper.py:654
Methodon_epoch_start
(self, *args)
lycoris/kohya.py:810
Methodon_step_start
(self, *args)
lycoris/kohya.py:813
Methodonfly_merge
(self, weight=1.0)
lycoris/wrapper.py:603
Methodonfly_merge
(self, multiplier=1.0)
lycoris/modules/base.py:373
Methodonfly_restore
(self)
lycoris/wrapper.py:607
Methodonfly_restore
(self)
lycoris/modules/base.py:396
Methodorg_weight
(self)
lycoris/modules/base.py:285
Methodorg_weight
(self)
lycoris/modules/full.py:101
Methodorthogonality_regularization
Compute orthogonality regularization loss. Encourages P and Q to remain orthogonal: L_p = ||P^T @ P - I||_F^2 L_q =
lycoris/modules/tlora.py:452
Methodparametrize_forward
(self, x: torch.Tensor, *args, **kwargs)
lycoris/modules/base.py:421
Methodprepare_grad_etc
(self, *args)
lycoris/wrapper.py:651
Methodprepare_grad_etc
(self, *args)
lycoris/kohya.py:807
Methodprepare_optimizer_params
(self, lr)
lycoris/wrapper.py:635
Methodprepare_optimizer_params
( self, text_encoder_lr=None, unet_lr: float = 1e-4, learning_rate=None )
lycoris/kohya.py:736
Methodrestore
(self)
lycoris/modules/base.py:317
Methodrestore
(self)
lycoris/modules/full.py:122
Methodsave_weights
(self, file, dtype, metadata)
lycoris/wrapper.py:660
Methodsave_weights
(self, file, dtype, metadata)
lycoris/kohya.py:819
Methodset_multiplier
(self, multiplier)
lycoris/wrapper.py:559
Functionset_timestep_mask
Set the timestep mask for T-LoRA modules. Call this before the forward pass with the appropriate mask for the current timestep. The mask
lycoris/modules/tlora.py:34
Methodsupports
(self, arg: str)
lycoris/config_sdk.py:34
Methodtest_diffusers_models_and_state_dicts_fnmatch
(self)
test/wrapper.py:668
Methodtest_diffusers_models_and_state_dicts_fnmatch_and_exclude
(self)
test/wrapper.py:766
Methodtest_diffusers_models_and_state_dicts_target_module_and_module_algo_map
(self)
test/wrapper.py:395
Methodtest_diffusers_models_and_state_dicts_whole_model
(self)
test/wrapper.py:518
Methodtest_extract
(self, device_dtype)
test/kohya.py:115
Methodtest_lycoris_functional
(self, module, base, device_dtype)
test/functional.py:54
Methodtest_lycoris_modules
(self, module, base, device_dtype, wd, tucker, scalar)
test/module.py:69
Methodtest_lycoris_modules_bypass_mode
( self, module, base, device_dtype, wd, tucker, scalar )
test/module.py:109
Methodtest_lycoris_modules_parametrize
( self, module, base, device_dtype, wd, tucker, scalar )
test/module.py:149
Methodtest_lycoris_wrapper
(self, algo, device_dtype, wd, tucker, scalar)
test/wrapper.py:175
Methodtest_lycoris_wrapper_regex_named_modules
( self, device_dtype=(torch.device("cpu"), torch.float32), )
test/wrapper.py:289
Methodtest_merge_round_trip_drift
(self)
test/precision_merge_test.py:33
Methodtest_multiple_wrappers_stack
(self)
test/wrapper.py:233
Methodtest_precise_merge_round_trip
(self)
test/precision_merge_test.py:41
Methodtest_wrapper
(self, algo, device_dtype, wd, tucker, scalar)
test/kohya.py:77
Methodto_dict
(self)
lycoris/config_sdk.py:271
Functiontucker_weight
(wa, wb, t)
lycoris/functional/general.py:90
Functionweight_gen
### boft_weight_gen Args: org_weight (torch.Tensor): the weight tensor max_block_size (int): max block size rescale (bool
lycoris/functional/boft.py:13
Functionweight_gen
### weight_gen Args: org_weight (torch.Tensor): the weight tensor rank (int): low rank Returns: torch.Tensor | None:
lycoris/functional/lokr.py:23
Functionweight_gen
### weight_gen Args: org_weight (torch.Tensor): the weight tensor rank (int): low rank Returns: torch.Tensor: w1d, w
lycoris/functional/loha.py:86
Functionweight_gen
### weight_gen Args: org_weight (torch.Tensor): the weight tensor rank (int): low rank Returns: torch.Tensor: down,
lycoris/functional/locon.py:10
Functionweight_gen
### weight_gen Args: org_weight (torch.Tensor): the weight tensor max_block_size (int): max block size rescale (bool, opt
lycoris/functional/diag_oft.py:28
← previous301–372 of 372, ranked by callers