SYMBOL INDEX (399 symbols across 78 files) FILE: assets/js/localization.js function hasLocalization (line 7) | function hasLocalization() { function textNodesUnder (line 11) | function textNodesUnder(el) { function canBeTranslated (line 17) | function canBeTranslated(node, text) { function getTranslation (line 37) | function getTranslation(text) { function processTextNode (line 52) | function processTextNode(node) { function processNode (line 63) | function processNode(node) { FILE: assets/js/script.js function gradioApp (line 1) | function gradioApp() { function get_uiCurrentTab (line 16) | function get_uiCurrentTab() { function get_uiCurrentTabContent (line 23) | function get_uiCurrentTabContent() { function onUiUpdate (line 38) | function onUiUpdate(callback) { function executeCallbacks (line 44) | function executeCallbacks(queue, arg) { function scheduleAfterUiUpdateCallbacks (line 60) | function scheduleAfterUiUpdateCallbacks() { FILE: kohya_gui.py function read_file_content (line 22) | def read_file_content(file_path): function initialize_ui_interface (line 29) | def initialize_ui_interface(config, headless, use_shell, release_info, r... function UI (line 74) | def UI(**kwargs): function initialize_arg_parser (line 114) | def initialize_arg_parser(): FILE: kohya_gui/basic_caption_gui.py function caption_images (line 22) | def caption_images( function gradio_basic_caption_gui_tab (line 124) | def gradio_basic_caption_gui_tab(headless=False, default_images_dir=None): FILE: kohya_gui/blip2_caption_gui.py function load_model (line 14) | def load_model(): function get_images_in_directory (line 39) | def get_images_in_directory(directory_path): function generate_caption (line 68) | def generate_caption( function caption_images_beam_search (line 137) | def caption_images_beam_search( function caption_images_nucleus (line 174) | def caption_images_nucleus( function gradio_blip2_caption_gui_tab (line 211) | def gradio_blip2_caption_gui_tab(headless=False, directory_path=None): FILE: kohya_gui/blip_caption_gui.py function caption_images (line 14) | def caption_images( function gradio_blip_caption_gui_tab (line 115) | def gradio_blip_caption_gui_tab(headless=False, default_train_dir=None): FILE: kohya_gui/class_accelerate_launch.py class AccelerateLaunch (line 12) | class AccelerateLaunch: method __init__ (line 13) | def __init__( method run_cmd (line 151) | def run_cmd(run_cmd: list, **kwargs): FILE: kohya_gui/class_advanced_training.py class AdvancedTraining (line 13) | class AdvancedTraining: method __init__ (line 27) | def __init__( FILE: kohya_gui/class_basic_training.py class BasicTraining (line 8) | class BasicTraining: method __init__ (line 22) | def __init__( method initialize_ui_components (line 60) | def initialize_ui_components(self) -> None: method init_training_controls (line 81) | def init_training_controls(self) -> None: method init_precision_and_resources_controls (line 130) | def init_precision_and_resources_controls(self) -> None: method init_lr_and_optimizer_controls (line 155) | def init_lr_and_optimizer_controls(self) -> None: method init_grad_and_lr_controls (line 227) | def init_grad_and_lr_controls(self) -> None: method init_learning_rate_controls (line 249) | def init_learning_rate_controls(self) -> None: method init_scheduler_controls (line 342) | def init_scheduler_controls(self) -> None: method init_resolution_and_bucket_controls (line 365) | def init_resolution_and_bucket_controls(self) -> None: method setup_sdxl_checkbox_behavior (line 408) | def setup_sdxl_checkbox_behavior(self) -> None: method update_learning_rate_te (line 426) | def update_learning_rate_te( FILE: kohya_gui/class_command_executor.py class CommandExecutor (line 12) | class CommandExecutor: method __init__ (line 17) | def __init__(self, headless: bool = False): method execute_command (line 31) | def execute_command(self, run_cmd: str, **kwargs): method kill_command (line 53) | def kill_command(self): method wait_for_training_to_end (line 79) | def wait_for_training_to_end(self): method is_running (line 86) | def is_running(self): FILE: kohya_gui/class_configuration_file.py class ConfigurationFile (line 10) | class ConfigurationFile: method __init__ (line 15) | def __init__( method list_config_dir (line 38) | def list_config_dir(self, path: str) -> list: method create_config_gui (line 52) | def create_config_gui(self) -> None: FILE: kohya_gui/class_flux1.py class flux1Training (line 9) | class flux1Training: method __init__ (line 10) | def __init__( FILE: kohya_gui/class_folders.py class Folders (line 6) | class Folders: method __init__ (line 11) | def __init__( method create_directory_if_not_exists (line 45) | def create_directory_if_not_exists(self, directory: str) -> None: method list_output_dirs (line 59) | def list_output_dirs(self, path: str) -> list: method list_logging_dirs (line 72) | def list_logging_dirs(self, path: str) -> list: method list_reg_data_dirs (line 85) | def list_reg_data_dirs(self, path: str) -> list: method create_folders_gui (line 98) | def create_folders_gui(self) -> None: FILE: kohya_gui/class_gui_config.py class KohyaSSGUIConfig (line 9) | class KohyaSSGUIConfig: method __init__ (line 14) | def __init__(self, config_file_path: str = "./config.toml"): method load_config (line 20) | def load_config(self, config_file_path: str = "./config.toml") -> dict: method save_config (line 40) | def save_config(self, config: dict, config_file_path: str = "./config.... method get (line 51) | def get(self, key: str, default=None): method is_config_loaded (line 84) | def is_config_loaded(self) -> bool: FILE: kohya_gui/class_huggingface.py class HuggingFace (line 5) | class HuggingFace: method __init__ (line 6) | def __init__( method initialize_ui_components (line 15) | def initialize_ui_components(self) -> None: FILE: kohya_gui/class_lora_tab.py class LoRATools (line 15) | class LoRATools: method __init__ (line 16) | def __init__( FILE: kohya_gui/class_metadata.py class MetaData (line 6) | class MetaData: method __init__ (line 7) | def __init__( method run_cmd (line 46) | def run_cmd(run_cmd: list, **kwargs): FILE: kohya_gui/class_sample_images.py function create_prompt_file (line 20) | def create_prompt_file(sample_prompts, output_dir): class SampleImages (line 108) | class SampleImages: method __init__ (line 113) | def __init__( method initialize_accordion (line 124) | def initialize_accordion(self): FILE: kohya_gui/class_sd3.py class sd3Training (line 13) | class sd3Training: method __init__ (line 27) | def __init__( FILE: kohya_gui/class_sdxl_parameters.py class SDXLParameters (line 4) | class SDXLParameters: method __init__ (line 5) | def __init__( method initialize_accordion (line 19) | def initialize_accordion(self): FILE: kohya_gui/class_source_model.py class SourceModel (line 33) | class SourceModel: method __init__ (line 34) | def __init__( FILE: kohya_gui/class_tensorboard.py class TensorboardManager (line 21) | class TensorboardManager: method __init__ (line 25) | def __init__(self, logging_dir, headless: bool = False, wait_time=5): method get_button_states (line 42) | def get_button_states(self, started=False): method open_tensorboard_url (line 47) | def open_tensorboard_url(self): method start_tensorboard (line 52) | def start_tensorboard(self, logging_dir=None): method stop_tensorboard (line 96) | def stop_tensorboard(self): method gradio_interface (line 114) | def gradio_interface(self): FILE: kohya_gui/common_gui.py function get_executable_path (line 68) | def get_executable_path(executable_name: str = None) -> str: function calculate_max_train_steps (line 91) | def calculate_max_train_steps( function check_if_model_exist (line 109) | def check_if_model_exist( function output_message (line 153) | def output_message(msg: str = "", title: str = "", headless: bool = Fals... function create_refresh_button (line 171) | def create_refresh_button(refresh_component, refresh_method, refreshed_a... function list_dirs (line 229) | def list_dirs(path): function list_files (line 268) | def list_files(path, exts=None, all=False): function update_my_data (line 318) | def update_my_data(my_data): function get_dir_and_file (line 454) | def get_dir_and_file(file_path): function get_file_path (line 459) | def get_file_path( function get_any_file_path (line 524) | def get_any_file_path(file_path: str = "") -> str: function get_folder_path (line 586) | def get_folder_path(folder_path: str = "") -> str: function get_saveasfile_path (line 627) | def get_saveasfile_path( function get_saveasfilename_path (line 679) | def get_saveasfilename_path( function add_pre_postfix (line 746) | def add_pre_postfix( function has_ext_files (line 822) | def has_ext_files(folder_path: str, file_extension: str) -> bool: function find_replace (line 847) | def find_replace( function color_aug_changed (line 917) | def color_aug_changed(color_aug): function set_pretrained_model_name_or_path_input (line 943) | def set_pretrained_model_name_or_path_input( function get_int_or_default (line 1069) | def get_int_or_default(kwargs, key, default_value=0): function get_float_or_default (line 1098) | def get_float_or_default(kwargs, key, default_value=0.0): function get_str_or_default (line 1132) | def get_str_or_default(kwargs, key, default_value=""): function run_cmd_advanced_training (line 1158) | def run_cmd_advanced_training(run_cmd: list = [], **kwargs): function verify_image_folder_pattern (line 1193) | def verify_image_folder_pattern(folder_path: str) -> bool: function SaveConfigFile (line 1269) | def SaveConfigFile( function save_to_file (line 1308) | def save_to_file(content): function check_duplicate_filenames (line 1336) | def check_duplicate_filenames( function validate_file_path (line 1398) | def validate_file_path(file_path: str) -> bool: function validate_folder_path (line 1409) | def validate_folder_path( function validate_toml_file (line 1432) | def validate_toml_file(file_path: str) -> bool: function validate_model_path (line 1449) | def validate_model_path(pretrained_model_name_or_path: str) -> bool: function is_file_writable (line 1478) | def is_file_writable(file_path: str) -> bool: function print_command_and_toml (line 1504) | def print_command_and_toml(run_cmd, tmpfilename): function validate_args_setting (line 1523) | def validate_args_setting(input_string): function setup_environment (line 1539) | def setup_environment(): FILE: kohya_gui/convert_lcm_gui.py function convert_lcm (line 25) | def convert_lcm( function gradio_convert_lcm_tab (line 78) | def gradio_convert_lcm_tab(headless=False): FILE: kohya_gui/convert_model_gui.py function convert_model (line 20) | def convert_model( function gradio_convert_model_tab (line 113) | def gradio_convert_model_tab(headless=False): FILE: kohya_gui/custom_logging.py function setup_logging (line 15) | def setup_logging(clean=False, debug=False): FILE: kohya_gui/dataset_balancing_gui.py function dataset_balancing (line 18) | def dataset_balancing(concept_repeats, folder, insecure): function warning (line 100) | def warning(insecure): function gradio_dataset_balancing_tab (line 111) | def gradio_dataset_balancing_tab(headless=False): FILE: kohya_gui/dreambooth_folder_creation_gui.py function copy_info_to_Folders_tab (line 13) | def copy_info_to_Folders_tab(training_folder): function dreambooth_folder_preparation (line 25) | def dreambooth_folder_preparation( function gradio_dreambooth_folder_creation_tab (line 115) | def gradio_dreambooth_folder_creation_tab( FILE: kohya_gui/dreambooth_gui.py function save_configuration (line 61) | def save_configuration( function open_configuration (line 272) | def open_configuration( function train_model (line 478) | def train_model( function dreambooth_tab (line 1158) | def dreambooth_tab( FILE: kohya_gui/extract_lora_from_dylora_gui.py function extract_dylora (line 25) | def extract_dylora( function gradio_extract_dylora_tab (line 79) | def gradio_extract_dylora_tab(headless=False): FILE: kohya_gui/extract_lora_gui.py function extract_lora (line 28) | def extract_lora( function gradio_extract_lora_tab (line 128) | def gradio_extract_lora_tab( FILE: kohya_gui/extract_lycoris_locon_gui.py function extract_lycoris_locon (line 26) | def extract_lycoris_locon( function update_mode (line 154) | def update_mode(mode): function gradio_extract_lycoris_locon_tab (line 170) | def gradio_extract_lycoris_locon_tab(headless=False): FILE: kohya_gui/finetune_gui.py function save_configuration (line 66) | def save_configuration( function open_configuration (line 281) | def open_configuration( function train_model (line 504) | def train_model( function finetune_tab (line 1201) | def finetune_tab( FILE: kohya_gui/flux_extract_lora_gui.py function extract_flux_lora (line 26) | def extract_flux_lora( function gradio_flux_extract_lora_tab (line 98) | def gradio_flux_extract_lora_tab(headless=False): FILE: kohya_gui/flux_merge_lora_gui.py function check_model (line 32) | def check_model(model): function verify_conditions (line 41) | def verify_conditions(flux_model, lora_models): class GradioFluxMergeLoRaTab (line 50) | class GradioFluxMergeLoRaTab: method __init__ (line 51) | def __init__(self, headless=False): method save_inputs_to_json (line 55) | def save_inputs_to_json(self, file_path, inputs): method load_inputs_from_json (line 60) | def load_inputs_from_json(self, file_path): method build_tab (line 66) | def build_tab(self): method merge_flux_lora (line 392) | def merge_flux_lora( FILE: kohya_gui/git_caption_gui.py function caption_images (line 15) | def caption_images( function gradio_git_caption_gui_tab (line 87) | def gradio_git_caption_gui_tab( FILE: kohya_gui/group_images_gui.py function group_images (line 15) | def group_images( function gradio_group_images_gui_tab (line 67) | def gradio_group_images_gui_tab(headless=False): FILE: kohya_gui/localization.py function load_localizations (line 8) | def load_localizations(): function load_language_js (line 18) | def load_language_js(language_name: str) -> str: FILE: kohya_gui/localization_ext.py function file_path (line 6) | def file_path(fn): function js_html_str (line 10) | def js_html_str(language): function add_javascript (line 19) | def add_javascript(language): FILE: kohya_gui/lora_gui.py function save_configuration (line 79) | def save_configuration( function open_configuration (line 364) | def open_configuration( function get_effective_lr_messages (line 684) | def get_effective_lr_messages( function train_model (line 742) | def train_model( function lora_tab (line 1834) | def lora_tab( FILE: kohya_gui/manual_caption_gui.py function _get_caption_path (line 18) | def _get_caption_path(image_file, images_dir, caption_ext): function _get_quick_tags (line 27) | def _get_quick_tags(quick_tags_text): function _get_tag_checkbox_updates (line 36) | def _get_tag_checkbox_updates(caption, quick_tags, quick_tags_set): function paginate_go (line 47) | def paginate_go(page, max_page): function paginate (line 56) | def paginate(page, max_page, page_change): function save_caption (line 60) | def save_caption(caption, caption_ext, image_file, images_dir): function update_quick_tags (line 68) | def update_quick_tags(quick_tags_text, *image_caption_texts): function update_image_caption (line 76) | def update_image_caption( function update_image_tags (line 86) | def update_image_tags( function import_tags_from_captions (line 109) | def import_tags_from_captions( function load_images (line 164) | def load_images(images_dir, caption_ext, loaded_images_dir, page, max_pa... function update_images (line 195) | def update_images( function gradio_manual_caption_gui_tab (line 253) | def gradio_manual_caption_gui_tab(headless=False, default_images_dir=None): FILE: kohya_gui/merge_lora_gui.py function check_model (line 32) | def check_model(model): function verify_conditions (line 41) | def verify_conditions(sd_model, lora_models): class GradioMergeLoRaTab (line 50) | class GradioMergeLoRaTab: method __init__ (line 51) | def __init__(self, headless=False): method save_inputs_to_json (line 55) | def save_inputs_to_json(self, file_path, inputs): method load_inputs_from_json (line 60) | def load_inputs_from_json(self, file_path): method build_tab (line 66) | def build_tab(self): method merge_lora (line 393) | def merge_lora( FILE: kohya_gui/merge_lycoris_gui.py function merge_lycoris (line 26) | def merge_lycoris( function gradio_merge_lycoris_tab (line 80) | def gradio_merge_lycoris_tab(headless=False): FILE: kohya_gui/resize_lora_gui.py function resize_lora (line 26) | def resize_lora( function gradio_resize_lora_tab (line 110) | def gradio_resize_lora_tab( FILE: kohya_gui/sd_modeltype.py class ModelType (line 8) | class ModelType(enum.Enum): class SDModelType (line 17) | class SDModelType: method __init__ (line 18) | def __init__(self, safetensors_path): method Is_SD1 (line 52) | def Is_SD1(self): method Is_SD2 (line 55) | def Is_SD2(self): method Is_SDXL (line 58) | def Is_SDXL(self): method Is_SD3 (line 61) | def Is_SD3(self): method Is_FLUX1 (line 64) | def Is_FLUX1(self): FILE: kohya_gui/svd_merge_lora_gui.py function svd_merge_lora (line 25) | def svd_merge_lora( function gradio_svd_merge_lora_tab (line 109) | def gradio_svd_merge_lora_tab(headless=False): FILE: kohya_gui/textual_inversion_gui.py function save_configuration (line 57) | def save_configuration( function open_configuration (line 224) | def open_configuration( function train_model (line 384) | def train_model( function ti_tab (line 956) | def ti_tab( FILE: kohya_gui/utilities.py function utilities_tab (line 14) | def utilities_tab( FILE: kohya_gui/verify_lora_gui.py function verify_lora (line 24) | def verify_lora( function gradio_verify_lora_tab (line 68) | def gradio_verify_lora_tab(headless=False): FILE: kohya_gui/wd14_caption_gui.py function caption_images (line 20) | def caption_images( function gradio_wd14_caption_gui_tab (line 145) | def gradio_wd14_caption_gui_tab( FILE: setup/setup_common.py function check_python_version (line 19) | def check_python_version(): function update_submodule (line 43) | def update_submodule(quiet=True): function clone_or_checkout (line 66) | def clone_or_checkout(repo_url, branch_or_tag, directory_name): function setup_logging (line 127) | def setup_logging(): function install_requirements_inbulk (line 166) | def install_requirements_inbulk( function configure_accelerate (line 228) | def configure_accelerate(run_accelerate=False): function check_torch (line 313) | def check_torch(): function _check_nvidia_toolkit (line 346) | def _check_nvidia_toolkit(): function _check_amd_toolkit (line 360) | def _check_amd_toolkit(): function _check_intel_oneapi_toolkit (line 370) | def _check_intel_oneapi_toolkit(): function _check_hardware_toolkit (line 382) | def _check_hardware_toolkit(): function _log_gpu_info (line 393) | def _log_gpu_info(torch_module): function check_repo_version (line 433) | def check_repo_version(): function git (line 453) | def git(arg: str, folder: str = None, ignore: bool = False): function pip (line 498) | def pip(arg: str, ignore: bool = False, quiet: bool = False, show_stdout... function installed (line 555) | def installed(package, friendly: str = None): function install (line 647) | def install( function process_requirements_line (line 689) | def process_requirements_line(line, show_stdout: bool = False): function install_requirements (line 697) | def install_requirements( function ensure_base_requirements (line 732) | def ensure_base_requirements(): function run_cmd (line 744) | def run_cmd(run_cmd): function clear_screen (line 770) | def clear_screen(): FILE: setup/setup_linux.py function main_menu (line 13) | def main_menu(platform_requirements_file, show_stdout: bool = False, no_... FILE: setup/setup_runpod.py function configure_accelerate (line 14) | def configure_accelerate(): function setup_environment (line 26) | def setup_environment(): function main_menu (line 48) | def main_menu(platform_requirements_file): FILE: setup/setup_windows.py function cudnn_install (line 18) | def cudnn_install(): function sync_bits_and_bytes_files (line 57) | def sync_bits_and_bytes_files(): function install_kohya_ss_torch2 (line 112) | def install_kohya_ss_torch2(headless: bool = False): function install_bitsandbytes_0_35_0 (line 137) | def install_bitsandbytes_0_35_0(): function install_bitsandbytes_0_40_1 (line 145) | def install_bitsandbytes_0_40_1(): function install_bitsandbytes_0_41_1 (line 154) | def install_bitsandbytes_0_41_1(): function install_bitsandbytes_0_41_2 (line 163) | def install_bitsandbytes_0_41_2(): function install_triton_2_1_0 (line 172) | def install_triton_2_1_0(): function main_menu (line 181) | def main_menu(headless: bool = False): FILE: setup/update_bitsandbytes.py function sync_bits_and_bytes_files (line 6) | def sync_bits_and_bytes_files(): FILE: setup/validate_requirements.py function check_path_with_space (line 23) | def check_path_with_space(): function detect_toolkit (line 38) | def detect_toolkit(): function check_torch (line 66) | def check_torch(): function log_cuda_info (line 116) | def log_cuda_info(torch): function log_mps_info (line 136) | def log_mps_info(torch): function log_xpu_info (line 145) | def log_xpu_info(torch, ipex): function main (line 157) | def main(): FILE: tools/analyse_loha.py class Logger (line 7) | class Logger(object): method __init__ (line 8) | def __init__(self, filename="loha_analysis_output.txt"): method write (line 12) | def write(self, message): method flush (line 16) | def flush(self): method close (line 22) | def close(self): function analyze_safetensors_file (line 25) | def analyze_safetensors_file(filepath, output_filename="loha_analysis_ou... FILE: tools/caption.py function create_caption_files (line 10) | def create_caption_files(image_folder: Path, file_pattern: str, caption_... function writable_dir (line 26) | def writable_dir(target_path): function main (line 37) | def main(): FILE: tools/caption_from_filename.py function is_image_file (line 7) | def is_image_file(filename, image_extensions): function create_text_file (line 11) | def create_text_file(image_filename, output_directory, text_extension): function main (line 32) | def main(image_directory, output_directory, image_extension, text_extens... function create_gui (line 56) | def create_gui(image_directory, output_directory, image_extension, text_... FILE: tools/cleanup_captions.py function writable_dir (line 6) | def writable_dir(target_path): function main (line 17) | def main(folder_path:Path, extension:str, keywords:set=None): FILE: tools/convert_html_to_md.py function is_writable_path (line 9) | def is_writable_path(target_path): function main (line 22) | def main(url, markdown_path): FILE: tools/convert_images_to_hq_jpg.py function writable_dir (line 8) | def writable_dir(target_path): function main (line 19) | def main(directory, in_ext, quality, delete_originals): FILE: tools/convert_images_to_webp.py function writable_dir (line 6) | def writable_dir(target_path): function main (line 17) | def main(): FILE: tools/create_txt_from_images.py function main (line 4) | def main(folder_path): FILE: tools/crop_images_to_n_buckets.py function aspect_ratio (line 12) | def aspect_ratio(img_path): function sort_images_by_aspect_ratio (line 33) | def sort_images_by_aspect_ratio(path): function create_groups (line 45) | def create_groups(sorted_images, n_groups): function average_aspect_ratio (line 72) | def average_aspect_ratio(group): function center_crop_image (line 98) | def center_crop_image(image, target_aspect_ratio): function copy_related_files (line 141) | def copy_related_files(img_path, save_path): function save_resized_cropped_images (line 177) | def save_resized_cropped_images(group, folder_name, group_number, avg_as... function main (line 220) | def main(): FILE: tools/dummy_loha.py function create_dummy_loha_file (line 83) | def create_dummy_loha_file(filepath="dummy_loha_corrected.safetensors"): FILE: tools/extract_locon.py function get_args (line 7) | def get_args(): function main (line 134) | def main(): FILE: tools/extract_loha_from_model.py class LogType (line 37) | class LogType(Enum): function log_layer_optimization_event (line 56) | def log_layer_optimization_event(log_type: LogType, layer_name: str, **k... function _get_closest_ema_value_before_iter (line 127) | def _get_closest_ema_value_before_iter(target_iter: int, ema_history: li... function initialize_loha_parameters (line 137) | def initialize_loha_parameters( function check_insufficient_progress (line 181) | def check_insufficient_progress( function check_loss_projection (line 206) | def check_loss_projection( function get_module_shape_info_from_weight (line 296) | def get_module_shape_info_from_weight(weight_tensor: torch.Tensor): function generate_intermediate_filename (line 301) | def generate_intermediate_filename(base_save_path: str, num_total_comple... function prepare_save_metadata (line 305) | def prepare_save_metadata( function perform_graceful_save (line 356) | def perform_graceful_save(output_path_to_save: str): function cleanup_intermediate_files (line 413) | def cleanup_intermediate_files(final_intended_path: str, for_resume_mana... function find_best_resume_file (line 438) | def find_best_resume_file(intended_final_path: str) -> tuple[str | None,... function handle_resume_or_continue_loha (line 467) | def handle_resume_or_continue_loha( function print_script_summary (line 540) | def print_script_summary( function setup_and_print_configuration (line 578) | def setup_and_print_configuration(current_args: argparse.Namespace): function load_models (line 601) | def load_models(base_model_path: str, ft_model_path: str) -> tuple[Order... function optimize_loha_for_layer (line 616) | def optimize_loha_for_layer( function handle_interrupt (line 828) | def handle_interrupt(signum, frame): function main (line 845) | def main(cli_args): function post_process_cli_args (line 1011) | def post_process_cli_args(parsed_args: argparse.Namespace) -> argparse.N... FILE: tools/extract_lora_from_models-new.py function _local_setup_logging (line 19) | def _local_setup_logging(log_level=logging.INFO): function _local_get_model_version_str_for_sd1_sd2 (line 37) | def _local_get_model_version_str_for_sd1_sd2(is_v2: bool, is_v_parameter... class LocalLoRAModulePlaceholder (line 43) | class LocalLoRAModulePlaceholder: method __init__ (line 44) | def __init__(self, lora_name: str, org_module: torch.nn.Module): function _local_create_network_placeholders (line 50) | def _local_create_network_placeholders(text_encoders: list, unet: torch.... function index_sv_cumulative (line 93) | def index_sv_cumulative(S, target): function index_sv_fro (line 100) | def index_sv_fro(S, target): function index_sv_ratio (line 108) | def index_sv_ratio(S, target): function index_sv_knee (line 115) | def index_sv_knee(S, MIN_SV_KNEE=1e-8): function index_sv_cumulative_knee (line 128) | def index_sv_cumulative_knee(S, min_sv_threshold=1e-8): function index_sv_rel_decrease (line 144) | def index_sv_rel_decrease(S, tau=0.1): function _str_to_dtype (line 153) | def _str_to_dtype(p): function save_to_file (line 159) | def save_to_file(file_name, state_dict_to_save, dtype, metadata=None): function _build_local_sai_metadata (line 172) | def _build_local_sai_metadata(title, creation_time, is_v2_flag, is_v_par... function _load_sd_model_components (line 192) | def _load_sd_model_components(model_path, is_v2_flag, target_device_over... function _load_sdxl_model_components (line 205) | def _load_sdxl_model_components(model_path, target_device_override, load... function _calculate_module_diffs_and_check (line 220) | def _calculate_module_diffs_and_check(module_loras_o, module_loras_t, di... function _determine_rank (line 245) | def _determine_rank(S_values, dynamic_method_name, dynamic_param_value, ... function _construct_lora_weights_from_svd_components (line 260) | def _construct_lora_weights_from_svd_components(U_full, S_all_values, Vh... function _log_svd_stats (line 288) | def _log_svd_stats(lora_module_name, S_all_values, rank_used, min_sv_for... function _prepare_lora_metadata (line 309) | def _prepare_lora_metadata(output_path, is_v2_flag, kohya_base_model_ver... function svd (line 340) | def svd( function setup_parser (line 489) | def setup_parser(): FILE: tools/extract_model_difference.py function extract_model_differences (line 7) | def extract_model_differences(base_model_path, finetuned_model_path, out... FILE: tools/group_images.py class ImageProcessor (line 14) | class ImageProcessor: method __init__ (line 16) | def __init__(self, input_folder, output_folder, group_size, include_su... method get_image_paths (line 27) | def get_image_paths(self): method group_images (line 38) | def group_images(self, images): method process_group (line 43) | def process_group(self, group, group_index): method get_aspect_ratios (line 56) | def get_aspect_ratios(self, group): method crop_images (line 64) | def crop_images(self, group, avg_aspect_ratio): method crop_image (line 73) | def crop_image(self, img, avg_aspect_ratio): method resize_and_save_images (line 89) | def resize_and_save_images(self, cropped_images, group_index, source_p... method create_caption_file (line 105) | def create_caption_file(self, source_path, group_index, caption_filena... method copy_other_files (line 114) | def copy_other_files(self, group, group_index): method process_images (line 125) | def process_images(self): method process_group (line 132) | def process_group(self, group, group_index): method pad_images (line 145) | def pad_images(self, group, avg_aspect_ratio): method pad_image (line 154) | def pad_image(self, img, avg_aspect_ratio): function main (line 168) | def main(): FILE: tools/group_images_recommended_size.py class ImageProcessor (line 7) | class ImageProcessor: method __init__ (line 9) | def __init__(self, input_folder, min_group, max_group, include_subfold... method get_image_paths (line 18) | def get_image_paths(self): method group_images (line 29) | def group_images(self, images, group_size): method process_group (line 34) | def process_group(self, group): method get_aspect_ratios (line 40) | def get_aspect_ratios(self, group): method calculate_losses (line 48) | def calculate_losses(self, group, avg_aspect_ratio): method calculate_loss (line 54) | def calculate_loss(self, img, avg_aspect_ratio): method monte_carlo_optimization (line 66) | def monte_carlo_optimization(self, groups): method process_images (line 92) | def process_images(self): function main (line 113) | def main(): FILE: tools/lcm_convert.py function parse_command_line_arguments (line 14) | def parse_command_line_arguments(): function load_diffusion_pipeline (line 23) | def load_diffusion_pipeline(command_line_args): function convert_and_save_diffusion_model (line 29) | def convert_and_save_diffusion_model(diffusion_pipeline, command_line_ar... function main (line 67) | def main(): FILE: tools/lycoris_locon_extract.py function get_args (line 7) | def get_args(): function main (line 134) | def main(): FILE: tools/lycoris_utils.py function make_sparse (line 14) | def make_sparse(t: torch.Tensor, sparsity=0.95): function extract_conv (line 22) | def extract_conv( function extract_linear (line 67) | def extract_linear( function extract_diff (line 111) | def extract_diff( function get_module (line 312) | def get_module( function cp_weight_from_conv (line 353) | def cp_weight_from_conv( function cp_weight (line 360) | def cp_weight( function rebuild_weight (line 368) | def rebuild_weight(module_type, params, orig_weight, scale=1): function merge (line 428) | def merge( FILE: tools/merge_lycoris.py function get_args (line 7) | def get_args(): function main (line 64) | def main(): FILE: tools/prepare_presets.py function remove_items_with_keywords (line 6) | def remove_items_with_keywords(json_file_path): FILE: tools/resize_lora.py function load_state_dict (line 18) | def load_state_dict(file_name, dtype): function save_to_file (line 34) | def save_to_file(file_name, model, state_dict, dtype, metadata): function index_sv_cumulative (line 46) | def index_sv_cumulative(S, target): function index_sv_fro (line 56) | def index_sv_fro(S, target): function extract_conv (line 68) | def extract_conv(weight, lora_rank, dynamic_method, dynamic_param, devic... function extract_linear (line 86) | def extract_linear(weight, lora_rank, dynamic_method, dynamic_param, dev... function merge_conv (line 105) | def merge_conv(lora_down, lora_up, device): function merge_linear (line 119) | def merge_linear(lora_down, lora_up, device): function rank_resize (line 132) | def rank_resize(S, rank, dynamic_method, dynamic_param, scale=1): function resize_lora_model (line 184) | def resize_lora_model(lora_sd, new_rank, save_dtype, device, dynamic_met... function resize (line 270) | def resize(args):