AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
143.11k stars 26.97k forks source link

[Bug]: protobuf==3.20.0 requirement breaks several extensions and offline mode #16365

Open neojam opened 3 months ago

neojam commented 3 months ago

Checklist

What happened?

If you install any of those extensions (or had those installed prior to last stable WebUI-Update) : adetailer sd-webui-controlnet stable-diffusion-webui-wd14-tagger

WebUI wont be able to start offline, since those extensions will download and install protobuf > 3.20.0 (currently "protobuf 4.25.4").

Uninstalling protobuf 4.25.4 and installing protobuf 3.20.0, will break the extensions mentioned above. (Looks like mediapipe, which is required for all above extentions, causes this compatibility problem)

python -m pip check
mediapipe 0.10.14 has requirement protobuf<5,>=4.25.3, but you have protobuf 3.20.0.
onnx 1.16.1 has requirement protobuf>=3.20.2, but you have protobuf 3.20.0.
tensorflow-intel 2.17.0 has requirement protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3, but you have protobuf 3.20.0.

When those extensions (and so the protobuf 4.25.4 is installed), the WebUI will not run in offline mode. However with internet access, on every run is "Installing requirements" is displayed and webui starts.

When run in offline mode WebUI tries every time to download protobuf==3.20.0, fails and will not start:

venv "E:\WebUI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb  7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)]
Version: v1.10.1
Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
Installing requirements
Traceback (most recent call last):
  File "E:\WebUI\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "E:\WebUI\stable-diffusion-webui\launch.py", line 39, in main
    prepare_environment()
  File "E:\WebUI\stable-diffusion-webui\modules\launch_utils.py", line 423, in prepare_environment
    run_pip(f"install -r \"{requirements_file}\"", "requirements")
  File "E:\WebUI\stable-diffusion-webui\modules\launch_utils.py", line 144, in run_pip
    return run(f'"{python}" -m pip {command} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}", live=live)
  File "E:\WebUI\stable-diffusion-webui\modules\launch_utils.py", line 116, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install requirements.
Command: "E:\WebUI\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install -r "requirements_versions.txt" --prefer-binary
Error code: 1
stdout: Requirement already satisfied: setuptools==69.5.1 in E:\WebUI\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 1)) (69.5.1)
Requirement already satisfied: GitPython==3.1.32 in E:\WebUI\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 2)) (3.1.32)
Requirement already satisfied: Pillow==9.5.0 in E:\WebUI\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 3)) (9.5.0)
Requirement already satisfied: accelerate==0.21.0 in E:\WebUI\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 4)) (0.21.0)
Requirement already satisfied: blendmodes==2022 in E:\WebUI\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 5)) (2022)
Requirement already satisfied: clean-fid==0.1.35 in E:\WebUI\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 6)) (0.1.35)
Requirement already satisfied: diskcache==5.6.3 in E:\WebUI\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 7)) (5.6.3)
Requirement already satisfied: einops==0.4.1 in E:\WebUI\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 8)) (0.4.1)
Requirement already satisfied: facexlib==0.3.0 in E:\WebUI\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 9)) (0.3.0)
Requirement already satisfied: fastapi==0.94.0 in E:\WebUI\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 10)) (0.94.0)
Requirement already satisfied: gradio==3.41.2 in E:\WebUI\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 11)) (3.41.2)
Requirement already satisfied: httpcore==0.15 in E:\WebUI\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 12)) (0.15.0)
Requirement already satisfied: inflection==0.5.1 in E:\WebUI\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 13)) (0.5.1)
Requirement already satisfied: jsonmerge==1.8.0 in E:\WebUI\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 14)) (1.8.0)
Requirement already satisfied: kornia==0.6.7 in E:\WebUI\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 15)) (0.6.7)
Requirement already satisfied: lark==1.1.2 in E:\WebUI\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 16)) (1.1.2)
Requirement already satisfied: numpy==1.26.2 in E:\WebUI\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 17)) (1.26.2)
Requirement already satisfied: omegaconf==2.2.3 in E:\WebUI\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 18)) (2.2.3)
Requirement already satisfied: open-clip-torch==2.20.0 in E:\WebUI\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 19)) (2.20.0)
Requirement already satisfied: piexif==1.1.3 in E:\WebUI\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 20)) (1.1.3)

stderr: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001767A88C160>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/protobuf/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001767A88C490>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/protobuf/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001767A88C640>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/protobuf/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001767A88C7F0>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/protobuf/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001767A88C9A0>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/protobuf/
ERROR: Could not find a version that satisfies the requirement protobuf==3.20.0 (from versions: none)
ERROR: No matching distribution found for protobuf==3.20.0

currently i had to uninstall all above extentions and do:

pip uninstall -y protobuf mediapipe onnxruntime onnxruntime-gpu open-clip-torch tensorboard open-clip-torch tensorflow-intel onnx insightface tensorflow open-clip-torch

After that webui will need to download its reqs again, but the offline mode will work after installing those

Steps to reproduce the problem

  1. Install any of the extentions above
  2. start webui online so it could download the reqs
  3. close webui
  4. start webui offline
  5. webui wont start

What should have happened?

webui should be able to start offline with following extentions: adetailer sd-webui-controlnet stable-diffusion-webui-wd14-tagger

What browsers do you use to access the UI ?

Mozilla Firefox

Sysinfo

{
    "Platform": "Windows-10-10.0.19045-SP0",
    "Python": "3.10.10",
    "Version": "v1.10.1",
    "Commit": "82a973c04367123ae98bd9abdf80d9eda9b910e2",
    "Git status": "On branch master\nYour branch is up to date with 'origin/master'.\n\nUntracked files:\n  (use \"git add <file>...\" to include in what will be committed)\n\t-extensions-break-webui/\n\txSTARTME.bat\n\tGitBash.bat\n\tztestTorch.py\n\nnothing added to commit but untracked files present (use \"git add\" to track)",
    "Script path": "E:\\WebUI\\stable-diffusion-webui",
    "Data path": "E:\\WebUI\\stable-diffusion-webui",
    "Extensions dir": "E:\\WebUI\\stable-diffusion-webui\\extensions",
    "Checksum": "d43551809fb043246971204f163c2a4208e5c7321330b2423569f924d7b70354",
    "Commandline": [
        "launch.py",
        "--no-half-vae",
        "--opt-sdp-no-mem-attention",
        "--opt-channelslast",
        "--theme",
        "dark",
        "--ckpt-dir",
        "E:\\WebUI\\RES\\model",
        "--embeddings-dir",
        "E:\\WebUI\\RES\\embedding",
        "--hypernetwork-dir",
        "E:\\WebUI\\RES\\hypernetwork",
        "--lora-dir",
        "E:\\WebUI\\RES\\lora",
        "--vae-dir",
        "E:\\WebUI\\RES\\vae",
        "--bsrgan-models-path",
        "E:\\WebUI\\RES\\upscalers\\BSRGAN",
        "--codeformer-models-path",
        "E:\\WebUI\\RES\\upscalers\\Codeformer",
        "--esrgan-models-path",
        "E:\\WebUI\\RES\\upscalers\\ESRGAN",
        "--gfpgan-models-path",
        "E:\\WebUI\\RES\\upscalers\\GFPGAN",
        "--ldsr-models-path",
        "E:\\WebUI\\RES\\upscalers\\LDSR",
        "--realesrgan-models-path",
        "E:\\WebUI\\RES\\upscalers\\RealESRGAN",
        "--scunet-models-path",
        "E:\\WebUI\\RES\\upscalers\\ScuNET",
        "--swinir-models-path",
        "E:\\WebUI\\RES\\upscalers\\SwinIR",
        "--dat-models-path",
        "E:\\WebUI\\RES\\upscalers\\DAT"
    ],
    "Torch env info": {
        "torch_version": "2.1.2+cu121",
        "is_debug_build": "False",
        "cuda_compiled_version": "12.1",
        "gcc_version": null,
        "clang_version": null,
        "cmake_version": null,
        "os": "Microsoft Windows 10 Pro",
        "libc_version": "N/A",
        "python_version": "3.10.10 (tags/v3.10.10:aad5f6a, Feb  7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)] (64-bit runtime)",
        "python_platform": "Windows-10-10.0.19045-SP0",
        "is_cuda_available": "True",
        "cuda_runtime_version": null,
        "cuda_module_loading": "LAZY",
        "nvidia_driver_version": "556.12",
        "nvidia_gpu_models": "GPU 0: NVIDIA GeForce RTX 3090 Ti",
        "cudnn_version": null,
        "pip_version": "pip3",
        "pip_packages": [
            "numpy==1.26.2",
            "open-clip-torch==2.20.0",
            "pytorch-lightning==1.9.4",
            "torch==2.1.2+cu121",
            "torchdiffeq==0.2.3",
            "torchmetrics==1.4.0.post0",
            "torchsde==0.2.6",
            "torchvision==0.16.2+cu121"
        ],
        "conda_packages": null,
        "hip_compiled_version": "N/A",
        "hip_runtime_version": "N/A",
        "miopen_runtime_version": "N/A",
        "caching_allocator_config": "",
        "is_xnnpack_available": "True",
        "cpu_info": [
            "Architecture=9",
            "CurrentClockSpeed=3501",
            "DeviceID=CPU0",
            "Family=107",
            "L2CacheSize=8192",
            "L2CacheSpeed=",
            "Manufacturer=AuthenticAMD",
            "MaxClockSpeed=3501",
            "Name=AMD Ryzen 9 3950X 16-Core Processor            ",
            "ProcessorType=3",
            "Revision=28928"
        ]
    },
    "Exceptions": [],
    "CPU": {
        "model": "AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD",
        "count logical": 32,
        "count physical": 16
    },
    "RAM": {
        "total": "64GB",
        "used": "23GB",
        "free": "41GB"
    },
    "Extensions": [
        {
            "name": "a1111-sd-webui-tagcomplete",
            "path": "E:\\WebUI\\stable-diffusion-webui\\extensions\\a1111-sd-webui-tagcomplete",
            "commit": "1c6bba2a3d0a8d2dec0c180873e5090dee654ada",
            "branch": "main",
            "remote": "https://github.com/DominikDoom/a1111-sd-webui-tagcomplete"
        },
        {
            "name": "adetailer",
            "path": "E:\\WebUI\\stable-diffusion-webui\\extensions\\adetailer",
            "commit": "25e7509fe018de8aa063a5f1902598f5eda0c06c",
            "branch": "main",
            "remote": "https://github.com/Bing-su/adetailer.git"
        },
        {
            "name": "diffusion-noise-alternatives-webui",
            "path": "E:\\WebUI\\stable-diffusion-webui\\extensions\\diffusion-noise-alternatives-webui",
            "commit": "7a3f0a6c6c25be46590dc66e67801322fb59ad9f",
            "branch": "main",
            "remote": "https://github.com/Seshelle/diffusion-noise-alternatives-webui"
        },
        {
            "name": "sd-webui-controlnet",
            "path": "E:\\WebUI\\stable-diffusion-webui\\extensions\\sd-webui-controlnet",
            "commit": "56cec5b2958edf3b1807b7e7b2b1b5186dbd2f81",
            "branch": "main",
            "remote": "https://github.com/Mikubill/sd-webui-controlnet"
        },
        {
            "name": "sd-webui-freeu",
            "path": "E:\\WebUI\\stable-diffusion-webui\\extensions\\sd-webui-freeu",
            "commit": "c618bb7f269c8428f4b6cc47fcac67084e050d19",
            "branch": "main",
            "remote": "https://github.com/ljleb/sd-webui-freeu"
        },
        {
            "name": "sd-webui-vectorscope-cc",
            "path": "E:\\WebUI\\stable-diffusion-webui\\extensions\\sd-webui-vectorscope-cc",
            "commit": "54720821c873d58c8898eeed8a9bb42f04d0249d",
            "branch": "main",
            "remote": "https://github.com/Haoming02/sd-webui-vectorscope-cc"
        },
        {
            "name": "sdweb-merge-block-weighted-gui",
            "path": "E:\\WebUI\\stable-diffusion-webui\\extensions\\sdweb-merge-block-weighted-gui",
            "commit": "8a62a753e791a75273863dd04958753f0df7532f",
            "branch": "master",
            "remote": "https://github.com/bbc-mc/sdweb-merge-block-weighted-gui.git"
        },
        {
            "name": "stable-diffusion-webui-wd14-tagger",
            "path": "E:\\WebUI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-wd14-tagger",
            "commit": "f4b56ef07bc3c9c1a59f7d67fbf8479ffab2ab68",
            "branch": "master",
            "remote": "https://github.com/67372a/stable-diffusion-webui-wd14-tagger"
        }
    ],
    "Inactive extensions": [
        {
            "name": "sd-webui-aspect-ratio-helper",
            "path": "E:\\WebUI\\stable-diffusion-webui\\extensions\\sd-webui-aspect-ratio-helper",
            "commit": "99fcf9b0a4e3f8c8cac07b12d17b66f12297b828",
            "branch": "main",
            "remote": "https://github.com/thomasasfk/sd-webui-aspect-ratio-helper.git"
        },
        {
            "name": "sd-webui-model-converter",
            "path": "E:\\WebUI\\stable-diffusion-webui\\extensions\\sd-webui-model-converter",
            "commit": "e5488193d255a37216a31b9b99dd11a85dfd2ad9",
            "branch": "main",
            "remote": "https://github.com/Akegarasu/sd-webui-model-converter.git"
        },
        {
            "name": "stable-diffusion-webui-daam",
            "path": "E:\\WebUI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-daam",
            "commit": "0906c850fb70d7e4b296f9449763d48fa8d1e687",
            "branch": "master",
            "remote": "https://github.com/toriato/stable-diffusion-webui-daam.git"
        },
        {
            "name": "stable-diffusion-webui-tokenizer",
            "path": "E:\\WebUI\\stable-diffusion-webui\\extensions\\stable-diffusion-webui-tokenizer",
            "commit": "ac6d541c7032e9f9c69c8ead2ed201302b06a4fe",
            "branch": "master",
            "remote": "https://github.com/AUTOMATIC1111/stable-diffusion-webui-tokenizer.git"
        }
    ],
    "Environment": {
        "COMMANDLINE_ARGS": " --no-half-vae --opt-sdp-no-mem-attention --opt-channelslast --theme dark --ckpt-dir               \"E:\\WebUI\\RES\\model\" --embeddings-dir         \"E:\\WebUI\\RES\\embedding\" --hypernetwork-dir       \"E:\\WebUI\\RES\\hypernetwork\" --lora-dir               \"E:\\WebUI\\RES\\lora\" --vae-dir                \"E:\\WebUI\\RES\\vae\" --bsrgan-models-path     \"E:\\WebUI\\RES\\upscalers\\BSRGAN\" --codeformer-models-path \"E:\\WebUI\\RES\\upscalers\\Codeformer\" --esrgan-models-path     \"E:\\WebUI\\RES\\upscalers\\ESRGAN\" --gfpgan-models-path     \"E:\\WebUI\\RES\\upscalers\\GFPGAN\" --ldsr-models-path       \"E:\\WebUI\\RES\\upscalers\\LDSR\" --realesrgan-models-path \"E:\\WebUI\\RES\\upscalers\\RealESRGAN\" --scunet-models-path     \"E:\\WebUI\\RES\\upscalers\\ScuNET\" --swinir-models-path     \"E:\\WebUI\\RES\\upscalers\\SwinIR\" --dat-models-path        \"E:\\WebUI\\RES\\upscalers\\DAT\"",
        "GRADIO_ANALYTICS_ENABLED": "False"
    },
    "Config": {
        "samples_save": false,
        "samples_format": "jpg",
        "samples_filename_pattern": "[datetime<%Y%m%d_%H%M%S>]",
        "save_images_add_number": false,
        "grid_save": true,
        "grid_format": "jpg",
        "grid_extended_filename": true,
        "grid_only_if_multiple": true,
        "grid_prevent_empty_spots": false,
        "n_rows": -1,
        "enable_pnginfo": true,
        "save_txt": false,
        "save_images_before_face_restoration": false,
        "save_images_before_highres_fix": false,
        "save_images_before_color_correction": false,
        "jpeg_quality": 95,
        "export_for_4chan": true,
        "use_original_name_batch": true,
        "use_upscaler_name_as_suffix": false,
        "save_selected_only": true,
        "do_not_add_watermark": true,
        "temp_dir": "T:/Temp",
        "clean_temp_dir_at_start": true,
        "outdir_samples": "",
        "outdir_txt2img_samples": "T:\\_SD_GENS\\txt2img-images",
        "outdir_img2img_samples": "T:\\_SD_GENS\\img2img-images",
        "outdir_extras_samples": "T:\\_SD_GENS\\extras-images",
        "outdir_grids": "",
        "outdir_txt2img_grids": "E:\\WebUI\\RES\\img\\SD-out\\_SD_GENS\\x\\txt2img-grids",
        "outdir_img2img_grids": "E:\\WebUI\\RES\\img\\SD-out\\_SD_GENS\\x\\img2img-grids",
        "outdir_save": "E:\\WebUI\\RES\\img\\SD-out\\_SD_GENS",
        "save_to_dirs": true,
        "grid_save_to_dirs": true,
        "use_save_to_dirs_for_ui": false,
        "directories_filename_pattern": "W[width]xH[height]",
        "directories_max_prompt_words": 8,
        "ESRGAN_tile": 192,
        "ESRGAN_tile_overlap": 8,
        "realesrgan_enabled_models": [
            "R-ESRGAN 4x+",
            "R-ESRGAN 4x+ Anime6B",
            "R-ESRGAN General 4xV3",
            "R-ESRGAN General WDN 4xV3",
            "R-ESRGAN AnimeVideo",
            "R-ESRGAN 2x+"
        ],
        "upscaler_for_img2img": "ESRGAN_4x",
        "face_restoration_model": "CodeFormer",
        "code_former_weight": 0.5,
        "face_restoration_unload": false,
        "show_warnings": false,
        "memmon_poll_rate": 8,
        "samples_log_stdout": false,
        "multiple_tqdm": true,
        "print_hypernet_extra": false,
        "unload_models_when_training": false,
        "pin_memory": false,
        "save_optimizer_state": false,
        "save_training_settings_to_txt": true,
        "dataset_filename_word_regex": "",
        "dataset_filename_join_string": " ",
        "training_image_repeats_per_epoch": 1,
        "training_write_csv_every": 500,
        "training_xattention_optimizations": false,
        "training_enable_tensorboard": false,
        "training_tensorboard_save_images": false,
        "training_tensorboard_flush_every": 120,
        "sd_model_checkpoint": "XXXXXXXXXXXXXXX-CUT-XXXXXXXXXXXXXXXXXXXXX",
        "sd_checkpoint_cache": 0,
        "sd_vae_checkpoint_cache": 0,
        "sd_vae": "sdxl_vae.safetensors",
        "sd_vae_as_default": true,
        "inpainting_mask_weight": 1.0,
        "initial_noise_multiplier": 1.0,
        "img2img_color_correction": false,
        "img2img_fix_steps": false,
        "img2img_background_color": "#ffffff",
        "enable_quantization": false,
        "enable_emphasis": true,
        "enable_batch_seeds": true,
        "comma_padding_backtrack": 20,
        "CLIP_stop_at_last_layers": 1,
        "upcast_attn": true,
        "use_old_emphasis_implementation": false,
        "use_old_karras_scheduler_sigmas": false,
        "use_old_hires_fix_width_height": false,
        "interrogate_keep_models_in_memory": false,
        "interrogate_return_ranks": false,
        "interrogate_clip_num_beams": 1,
        "interrogate_clip_min_length": 24,
        "interrogate_clip_max_length": 48,
        "interrogate_clip_dict_limit": 1500,
        "interrogate_clip_skip_categories": [],
        "interrogate_deepbooru_score_threshold": 0.5,
        "deepbooru_sort_alpha": true,
        "deepbooru_use_spaces": true,
        "deepbooru_escape": true,
        "deepbooru_filter_tags": "",
        "extra_networks_default_view": "cards",
        "extra_networks_default_multiplier": 0.8,
        "sd_hypernetwork": "None",
        "return_grid": true,
        "do_not_show_images": false,
        "add_model_hash_to_info": true,
        "add_model_name_to_info": true,
        "disable_weights_auto_swap": false,
        "send_seed": true,
        "send_size": true,
        "font": "",
        "js_modal_lightbox": true,
        "js_modal_lightbox_initially_zoomed": true,
        "show_progress_in_title": true,
        "samplers_in_dropdown": true,
        "dimensions_and_batch_together": true,
        "keyedit_precision_attention": 0.1,
        "keyedit_precision_extra": 0.05,
        "quicksettings": "sd_model_checkpoint,CLIP_stop_at_last_layers,eta_noise_seed_delta,sd_vae,extra_networks_default_multiplier,lora_apply_to_outputs",
        "ui_reorder": "override_settings, inpaint, sampler, checkboxes, hires_fix, dimensions, cfg, seed, batch,  scripts",
        "ui_extra_networks_tab_reorder": "",
        "localization": "None",
        "show_progressbar": true,
        "live_previews_enable": true,
        "show_progress_grid": true,
        "show_progress_every_n_steps": 10,
        "show_progress_type": "Full",
        "live_preview_content": "Combined",
        "live_preview_refresh_period": 1000,
        "hide_samplers": [],
        "eta_ddim": 0.0,
        "eta_ancestral": 1.0,
        "ddim_discretize": "uniform",
        "s_churn": 0.0,
        "s_tmin": 0.0,
        "s_noise": 1.0,
        "eta_noise_seed_delta": 31337,
        "always_discard_next_to_last_sigma": false,
        "postprocessing_enable_in_main_ui": [],
        "postprocessing_operation_order": [],
        "upscaling_max_images_in_cache": 5,
        "disabled_extensions": [
            "openpose-editor",
            "sd-webui-aspect-ratio-helper",
            "sd-webui-model-converter",
            "stable-diffusion-webui-daam",
            "stable-diffusion-webui-tokenizer",
            "ultimate-upscale-for-automatic1111"
        ],
        "sd_checkpoint_hash": "45a5febab2aac097e4af608a3ed2a23d3c34b547144a8872f6f9a06616c1a2a8",
        "ldsr_steps": 100,
        "ldsr_cached": false,
        "SWIN_tile": 192,
        "SWIN_tile_overlap": 8,
        "sd_lora": "None",
        "lora_apply_to_outputs": false,
        "tac_tagFile": "danbooru.csv",
        "tac_active": true,
        "tac_activeIn.txt2img": true,
        "tac_activeIn.img2img": true,
        "tac_activeIn.negativePrompts": true,
        "tac_activeIn.thirdParty": true,
        "tac_activeIn.modelList": "",
        "tac_activeIn.modelListMode": "Blacklist",
        "tac_maxResults": 30.0,
        "tac_showAllResults": true,
        "tac_resultStepLength": 100.0,
        "tac_delayTime": 100.0,
        "tac_useWildcards": true,
        "tac_useEmbeddings": true,
        "tac_useHypernetworks": true,
        "tac_useLoras": true,
        "tac_showWikiLinks": true,
        "tac_replaceUnderscores": true,
        "tac_escapeParentheses": true,
        "tac_appendComma": true,
        "tac_alias.searchByAlias": true,
        "tac_alias.onlyShowAlias": false,
        "tac_translation.translationFile": "None",
        "tac_translation.oldFormat": false,
        "tac_translation.searchByTranslation": true,
        "tac_extra.extraFile": "None",
        "tac_extra.onlyAliasExtraFile": false,
        "additional_networks_sort_models_by": "path name",
        "additional_networks_reverse_sort_order": false,
        "additional_networks_model_name_filter": "",
        "additional_networks_xy_grid_model_metadata": "",
        "additional_networks_hash_thread_count": 1.0,
        "additional_networks_back_up_model_when_saving": true,
        "additional_networks_show_only_safetensors": false,
        "additional_networks_show_only_models_with_metadata": "disabled",
        "additional_networks_max_top_tags": 20.0,
        "images_history_preload": false,
        "images_record_paths": true,
        "images_delete_message": true,
        "images_history_page_columns": 6.0,
        "images_history_page_rows": 6.0,
        "images_history_pages_perload": 20.0,
        "promptgen_names": "AUTOMATIC/promptgen-lexart, AUTOMATIC/promptgen-majinai-safe, AUTOMATIC/promptgen-majinai-unsafe",
        "promptgen_device": "gpu",
        "tac_extra.addMode": "Insert before",
        "additional_networks_max_dataset_folders": 20.0,
        "control_net_model_config": "E:\\WebUI\\stable-diffusion-webui\\extensions\\sd-webui-controlnet\\models\\cldm_v15.yaml",
        "control_net_models_path": "",
        "control_net_control_transfer": false,
        "control_net_no_detectmap": false,
        "control_net_only_midctrl_hires": true,
        "control_net_allow_script_control": false,
        "img_downscale_threshold": 4.0,
        "target_side_length": 4000.0,
        "no_dpmpp_sde_batch_determinism": false,
        "control_net_model_adapter_config": "E:\\WebUI\\stable-diffusion-webui\\extensions\\sd-webui-controlnet\\models\\sketch_adapter_v14.yaml",
        "control_net_detectedmap_dir": "E:\\WebUI\\RES\\img\\SD-out\\_SD_GENS\\detected_maps",
        "control_net_detectmap_autosaving": false,
        "control_net_skip_img2img_processing": false,
        "control_net_only_mid_control": false,
        "control_net_max_models_num": 3,
        "control_net_model_cache_size": 2,
        "control_net_monocular_depth_optim": false,
        "control_net_cfg_based_guidance": false,
        "tac_slidingPopup": true,
        "webp_lossless": false,
        "img_max_size_mp": 200.0,
        "extra_networks_add_text_separator": " ",
        "hidden_tabs": [],
        "uni_pc_variant": "bh1",
        "uni_pc_skip_type": "time_uniform",
        "uni_pc_order": 3,
        "uni_pc_lower_order_final": true,
        "control_net_sync_field_args": false,
        "arh_expand_by_default": false,
        "arh_ui_component_order_key": "MaxDimensionScaler, PredefinedAspectRatioButtons, PredefinedPercentageButtons",
        "arh_show_max_width_or_height": true,
        "arh_max_width_or_height": 1728,
        "arh_show_predefined_aspect_ratios": true,
        "arh_predefined_aspect_ratio_use_max_dim": false,
        "arh_predefined_aspect_ratios": "1:1, 2:3, 3:5 , 4:3, 16:9, 9:16, 21:9",
        "arh_show_predefined_percentages": true,
        "arh_predefined_percentages": "25, 50, 75, 125, 150, 175, 200",
        "arh_predefined_percentages_display_key": "Incremental/decremental percentage (-50%, +50%)",
        "save_mask": false,
        "save_mask_composite": false,
        "extra_networks_card_width": 0.0,
        "extra_networks_card_height": 0.0,
        "return_mask": false,
        "return_mask_composite": false,
        "arh_javascript_aspect_ratio_show": false,
        "arh_javascript_aspect_ratio": "1:1, 3:2, 4:3, 5:4, 16:9, 1.85:1, 2.35:1, 2.39:1, 2.40:1, 21:9, 1.375:1, 1.66:1, 1.75:1",
        "arh_hide_accordion_by_default": false,
        "disable_all_extensions": "none",
        "tac_useLycos": true,
        "tac_keymap": "{\n    \"MoveUp\": \"ArrowUp\",\n    \"MoveDown\": \"ArrowDown\",\n    \"JumpUp\": \"PageUp\",\n    \"JumpDown\": \"PageDown\",\n    \"JumpToStart\": \"Home\",\n    \"JumpToEnd\": \"End\",\n    \"ChooseSelected\": \"Enter\",\n    \"ChooseFirstOrSelected\": \"Tab\",\n    \"Close\": \"Escape\"\n}",
        "tac_colormap": "{\n    \"danbooru\": {\n        \"-1\": [\"red\", \"maroon\"],\n        \"0\": [\"lightblue\", \"dodgerblue\"],\n        \"1\": [\"indianred\", \"firebrick\"],\n        \"3\": [\"violet\", \"darkorchid\"],\n        \"4\": [\"lightgreen\", \"darkgreen\"],\n        \"5\": [\"orange\", \"darkorange\"]\n    },\n    \"e621\": {\n        \"-1\": [\"red\", \"maroon\"],\n        \"0\": [\"lightblue\", \"dodgerblue\"],\n        \"1\": [\"gold\", \"goldenrod\"],\n        \"3\": [\"violet\", \"darkorchid\"],\n        \"4\": [\"lightgreen\", \"darkgreen\"],\n        \"5\": [\"tomato\", \"darksalmon\"],\n        \"6\": [\"red\", \"maroon\"],\n        \"7\": [\"whitesmoke\", \"black\"],\n        \"8\": [\"seagreen\", \"darkseagreen\"]\n    }\n}",
        "arh_ui_javascript_selection_method": "Aspect Ratios Dropdown",
        "control_net_modules_path": "",
        "control_net_high_res_only_mid": false,
        "restore_config_state_file": "",
        "save_init_img": false,
        "outdir_init_images": "E:\\WebUI\\RES\\img\\SD-out\\_SD_GENS\\init-images",
        "SCUNET_tile": 256,
        "SCUNET_tile_overlap": 8,
        "randn_source": "GPU",
        "dont_fix_second_order_samplers_schedule": false,
        "sd_lyco": "None",
        "keyedit_delimiters": ".,\\/!?%^*;:{}=`~()",
        "gradio_theme": "Default",
        "s_min_uncond": 0,
        "controlnet_show_batch_images_in_ui": false,
        "controlnet_increment_seed_during_batch": false,
        "quicksettings_list": [
            "sd_model_checkpoint",
            "CLIP_stop_at_last_layers",
            "eta_noise_seed_delta",
            "sd_vae",
            "extra_networks_default_multiplier",
            "lora_apply_to_outputs",
            "token_merging_ratio",
            "token_merging_ratio_hr",
            "img2img_extra_noise"
        ],
        "lora_functional": false,
        "lora_preferred_name": "Filename",
        "js_modal_lightbox_gamepad": true,
        "js_modal_lightbox_gamepad_repeat": 250.0,
        "add_version_to_infotext": true,
        "tac_translation.liveTranslation": false,
        "tac_chantFile": "demo-chants.json",
        "ad_max_models": 4,
        "ad_save_previews": false,
        "ad_save_images_before": false,
        "ad_only_seleted_scripts": true,
        "ad_script_names": "dynamic_prompting,dynamic_thresholding,wildcards,wildcard_recursive",
        "ad_bbox_sortby": "None",
        "list_hidden_files": true,
        "cross_attention_optimization": "Automatic",
        "token_merging_ratio": 0,
        "token_merging_ratio_img2img": 0,
        "token_merging_ratio_hr": 0,
        "extra_networks_show_hidden_directories": true,
        "extra_networks_hidden_models": "When searched",
        "lora_add_hashes_to_infotext": true,
        "img2img_editor_height": 720,
        "ui_tab_order": [],
        "hires_fix_show_sampler": false,
        "hires_fix_show_prompts": true,
        "live_previews_image_format": "jpeg",
        "tac_refreshTempFiles": "Refresh TAC temp files",
        "controlnet_disable_control_type": false,
        "tac_wildcardCompletionMode": "To next folder level",
        "arh_show_min_width_or_height": false,
        "arh_min_width_or_height": 1024,
        "controlnet_disable_openpose_edit": false,
        "ui_reorder_list": [
            "override_settings"
        ],
        "grid_zip_filename_pattern": "",
        "sd_unet": "Automatic",
        "pad_cond_uncond": false,
        "experimental_persistent_cond_cache": false,
        "hires_fix_use_firstpass_conds": false,
        "disable_token_counters": false,
        "extra_options": [],
        "extra_options_accordion": false,
        "infotext_styles": "Apply if any",
        "k_sched_type": "Automatic",
        "sigma_min": 0.0,
        "sigma_max": 0.0,
        "rho": 0.0,
        "canvas_hotkey_zoom": "Alt",
        "canvas_hotkey_adjust": "Ctrl",
        "canvas_hotkey_move": "F",
        "canvas_hotkey_fullscreen": "S",
        "canvas_hotkey_reset": "R",
        "canvas_hotkey_overlap": "O",
        "canvas_show_tooltip": true,
        "canvas_disabled_functions": [
            "Overlap"
        ],
        "tac_appendSpace": true,
        "tac_alwaysSpaceAtEnd": true,
        "tac_modelKeywordCompletion": "Never",
        "control_net_inpaint_blur_sigma": 7,
        "grid_text_active_color": "#000000",
        "grid_text_inactive_color": "#999999",
        "grid_background_color": "#ffffff",
        "disable_mmap_load_safetensors": false,
        "auto_vae_precision": true,
        "sdxl_crop_top": 0.0,
        "sdxl_crop_left": 0.0,
        "sdxl_refiner_low_aesthetic_score": 2.5,
        "sdxl_refiner_high_aesthetic_score": 6.0,
        "extra_networks_card_text_scale": 1,
        "extra_networks_card_show_desc": true,
        "textual_inversion_print_at_load": false,
        "textual_inversion_add_hashes_to_infotext": true,
        "lora_show_all": true,
        "lora_hide_unknown_for_versions": [],
        "keyedit_move": true,
        "add_user_name_to_info": false,
        "canvas_blur_prompt": false,
        "control_net_no_high_res_fix": false,
        "tac_sortWildcardResults": true,
        "tac_showExtraNetworkPreviews": true,
        "controlnet_ignore_noninpaint_mask": false,
        "sd_vae_overrides_per_model_preferences": false,
        "save_incomplete_images": false,
        "face_restoration": false,
        "auto_launch_browser": "Disable",
        "show_gradio_deprecation_warnings": true,
        "hide_ldm_prints": true,
        "api_enable_requests": true,
        "api_forbid_local_requests": true,
        "api_useragent": "",
        "sd_checkpoints_limit": 2,
        "sd_checkpoints_keep_in_cpu": true,
        "tiling": false,
        "hires_fix_refiner_pass": "second pass",
        "sd_vae_encode_method": "Full",
        "sd_vae_decode_method": "Full",
        "img2img_extra_noise": 0.03,
        "img2img_sketch_default_brush_color": "#ffffff",
        "img2img_inpaint_mask_brush_color": "#ffffff",
        "img2img_inpaint_sketch_default_brush_color": "#ffffff",
        "persistent_cond_cache": true,
        "batch_cond_uncond": true,
        "use_old_scheduling": false,
        "lora_in_memory_limit": 0,
        "gradio_themes_cache": true,
        "gallery_height": "",
        "extra_options_txt2img": [],
        "extra_options_img2img": [],
        "extra_options_cols": 1,
        "live_preview_allow_lowvram_full": false,
        "live_preview_fast_interrupt": true,
        "s_tmax": 0,
        "sgm_noise_multiplier": false,
        "canvas_auto_expand": true,
        "tagger_out_filename_fmt": "[name].[output_extension]",
        "tagger_count_threshold": 100,
        "tagger_batch_recursive": true,
        "tagger_auto_serde_json": true,
        "tagger_store_images": false,
        "tagger_weighted_tags_files": false,
        "tagger_verbose": false,
        "tagger_repl_us": true,
        "tagger_repl_us_excl": "0_0, (o)_(o), +_+, +_-, ._., <o>_<o>, <|>_<|>, =_=, >_<, 3_3, 6_9, >_o, @_@, ^_^, o_o, u_u, x_x, |_|, ||_||",
        "tagger_escape": false,
        "tagger_batch_size": 1024.0,
        "tagger_hf_cache_dir": "E:\\WebUI\\stable-diffusion-webui\\models\\interrogators",
        "tac_includeEmbeddingsInNormalResults": false,
        "tac_modelKeywordLocation": "Start of prompt",
        "control_net_unit_count": 3,
        "tac_modelSortOrder": "Name",
        "ad_extra_models_dir": "",
        "ad_same_seed_for_each_tap": false,
        "hypertile_enable_unet": false,
        "hypertile_enable_unet_secondpass": false,
        "hypertile_max_depth_unet": 3,
        "hypertile_max_tile_unet": 256,
        "hypertile_swap_size_unet": 3,
        "hypertile_enable_vae": false,
        "hypertile_max_depth_vae": 3,
        "hypertile_max_tile_vae": 128,
        "hypertile_swap_size_vae": 3,
        "tac_wildcardExclusionList": "",
        "tac_skipWildcardRefresh": false,
        "save_images_replace_action": "Replace",
        "notification_audio": true,
        "notification_volume": 100,
        "extra_networks_dir_button_function": false,
        "extra_networks_card_order_field": "Path",
        "extra_networks_card_order": "Ascending",
        "img2img_batch_show_results_limit": 32,
        "add_vae_name_to_info": true,
        "add_vae_hash_to_info": true,
        "infotext_skip_pasting": [],
        "js_live_preview_in_modal_lightbox": false,
        "keyedit_delimiters_whitespace": [
            "Tab",
            "Carriage Return",
            "Line Feed"
        ],
        "compact_prompt_box": false,
        "sd_checkpoint_dropdown_use_short": false,
        "txt2img_settings_accordion": false,
        "img2img_settings_accordion": false,
        "enable_console_prompts": false,
        "dump_stacks_on_signal": false,
        "postprocessing_existing_caption_action": "Ignore",
        "tac_useLoraPrefixForLycos": true,
        "controlnet_crop_upscale_script_only": false,
        "controlnet_disable_photopea_edit": false,
        "controlnet_photopea_warning": true,
        "controlnet_clip_detector_on_cpu": false,
        "tac_useStyleVars": false,
        "SWIN_torch_compile": false,
        "tac_frequencySort": true,
        "tac_frequencyFunction": "Logarithmic (weak)",
        "tac_frequencyMinCount": 3,
        "tac_frequencyMaxAge": 30,
        "tac_frequencyRecommendCap": 10,
        "tac_frequencyIncludeAlias": false,
        "cc_metadata": true,
        "auto_backcompat": true,
        "use_downcasted_alpha_bar": true,
        "refiner_switch_by_sample_steps": false,
        "extra_networks_card_description_is_html": false,
        "extra_networks_tree_view_style": "Dirs",
        "extra_networks_tree_view_default_enabled": true,
        "extra_networks_tree_view_default_width": 180.0,
        "lora_not_found_warning_console": false,
        "lora_not_found_gradio_warning": false,
        "pad_cond_uncond_v0": false,
        "fp8_storage": "Disable",
        "cache_fp16_weight": false,
        "sd_noise_schedule": "Default",
        "emphasis": "Original",
        "enable_prompt_comments": true,
        "auto_vae_precision_bfloat16": false,
        "overlay_inpaint": true,
        "sd_webui_modal_lightbox_icon_opacity": 1,
        "sd_webui_modal_lightbox_toolbar_opacity": 0.9,
        "open_dir_button_choice": "Subdirectory",
        "include_styles_into_token_counters": true,
        "interrupt_after_current": true,
        "enable_reloading_ui_scripts": false,
        "prioritized_callbacks_app_started": [],
        "prioritized_callbacks_model_loaded": [],
        "prioritized_callbacks_ui_tabs": [],
        "prioritized_callbacks_ui_settings": [],
        "prioritized_callbacks_after_component": [],
        "prioritized_callbacks_infotext_pasted": [],
        "prioritized_callbacks_script_unloaded": [],
        "prioritized_callbacks_before_ui": [],
        "prioritized_callbacks_on_reload": [],
        "prioritized_callbacks_list_optimizers": [],
        "prioritized_callbacks_before_token_counter": [],
        "prioritized_callbacks_script_before_process": [],
        "prioritized_callbacks_script_process": [],
        "prioritized_callbacks_script_before_process_batch": [],
        "prioritized_callbacks_script_postprocess": [],
        "prioritized_callbacks_script_postprocess_batch": [],
        "prioritized_callbacks_script_post_sample": [],
        "prioritized_callbacks_script_on_mask_blend": [],
        "prioritized_callbacks_script_postprocess_image": [],
        "prioritized_callbacks_script_postprocess_maskoverlay": [],
        "enable_upscale_progressbar": true,
        "postprocessing_disable_in_extras": [],
        "dat_enabled_models": [
            "DAT x2",
            "DAT x3",
            "DAT x4"
        ],
        "DAT_tile": 192,
        "DAT_tile_overlap": 8,
        "set_scale_by_when_changing_upscaler": false,
        "canvas_hotkey_shrink_brush": "Q",
        "canvas_hotkey_grow_brush": "W",
        "controlnet_control_type_dropdown": false,
        "disable_mean_in_calclate_cond": false,
        "freeu_png_info_auto_enable": true,
        "prioritized_callbacks_cfg_after_cfg": [],
        "prioritized_callbacks_script_process_batch": [],
        "ad_same_seed_for_each_tab": false,
        "save_write_log_csv": true,
        "lora_bundled_ti_to_infotext": true,
        "s_min_uncond_all": false,
        "skip_early_cond": 0,
        "beta_dist_alpha": 0.6,
        "beta_dist_beta": 0.6,
        "sdxl_clip_l_skip": false,
        "sd3_enable_t5": false,
        "prevent_screen_sleep_during_generation": true,
        "profiling_enable": false,
        "profiling_activities": [
            "CPU"
        ],
        "profiling_record_shapes": true,
        "profiling_profile_memory": true,
        "profiling_with_stack": true,
        "profiling_filename": "trace.json",
        "ad_only_selected_scripts": true
    },
    "Startup": {
        "total": 35.55865979194641,
        "records": {
            "initial startup": 0.01500391960144043,
            "prepare environment/checks": 0.005001544952392578,
            "prepare environment/git version info": 0.03400874137878418,
            "prepare environment/torch GPU test": 1.746356725692749,
            "prepare environment/clone repositores": 0.10702705383300781,
            "prepare environment/install requirements": 9.278183221817017,
            "prepare environment/run extensions installers/a1111-sd-webui-tagcomplete": 0.0,
            "prepare environment/run extensions installers/adetailer": 0.11202836036682129,
            "prepare environment/run extensions installers/diffusion-noise-alternatives-webui": 0.0,
            "prepare environment/run extensions installers/sd-webui-controlnet": 0.11703181266784668,
            "prepare environment/run extensions installers/sd-webui-freeu": 0.0,
            "prepare environment/run extensions installers/sd-webui-vectorscope-cc": 0.0,
            "prepare environment/run extensions installers/sdweb-merge-block-weighted-gui": 0.0,
            "prepare environment/run extensions installers/stable-diffusion-webui-wd14-tagger": 2.7473819255828857,
            "prepare environment/run extensions installers": 2.9764420986175537,
            "prepare environment": 14.147019386291504,
            "launcher": 0.0010001659393310547,
            "import torch": 2.7877724170684814,
            "import gradio": 0.669173002243042,
            "setup paths": 2.5366580486297607,
            "import ldm": 0.0040013790130615234,
            "import sgm": 0.0,
            "initialize shared": 0.2037980556488037,
            "other imports": 0.41710829734802246,
            "opts onchange": 0.0010001659393310547,
            "setup SD model": 0.0,
            "setup codeformer": 0.0009999275207519531,
            "setup gfpgan": 0.007001638412475586,
            "set samplers": 0.0,
            "list extensions": 0.0020008087158203125,
            "restore config state file": 0.0,
            "list SD models": 0.18398213386535645,
            "list localizations": 0.0,
            "load scripts/custom_code.py": 0.005001544952392578,
            "load scripts/img2imgalt.py": 0.0010004043579101562,
            "load scripts/loopback.py": 0.0,
            "load scripts/outpainting_mk_2.py": 0.0,
            "load scripts/poor_mans_outpainting.py": 0.0,
            "load scripts/postprocessing_codeformer.py": 0.0,
            "load scripts/postprocessing_gfpgan.py": 0.0009999275207519531,
            "load scripts/postprocessing_upscale.py": 0.0,
            "load scripts/prompt_matrix.py": 0.0,
            "load scripts/prompts_from_file.py": 0.0,
            "load scripts/sd_upscale.py": 0.0,
            "load scripts/xyz_grid.py": 0.002000570297241211,
            "load scripts/ldsr_model.py": 0.9752531051635742,
            "load scripts/lora_script.py": 4.5637688636779785,
            "load scripts/scunet_model.py": 0.031008005142211914,
            "load scripts/swinir_model.py": 0.028007030487060547,
            "load scripts/hotkey_config.py": 0.0,
            "load scripts/extra_options_section.py": 0.0010004043579101562,
            "load scripts/hypertile_script.py": 0.05801534652709961,
            "load scripts/postprocessing_autosized_crop.py": 0.0,
            "load scripts/postprocessing_caption.py": 0.0,
            "load scripts/postprocessing_create_flipped_copies.py": 0.0010004043579101562,
            "load scripts/postprocessing_focal_crop.py": 0.0009996891021728516,
            "load scripts/postprocessing_split_oversized.py": 0.0,
            "load scripts/soft_inpainting.py": 0.0,
            "load scripts/model_keyword_support.py": 0.0030012130737304688,
            "load scripts/shared_paths.py": 0.0,
            "load scripts/tag_autocomplete_helper.py": 0.785203218460083,
            "load scripts/tag_frequency_db.py": 0.0010001659393310547,
            "load scripts/!adetailer.py": 0.5280201435089111,
            "load scripts/Alternate Noise.py": 0.0009992122650146484,
            "load scripts/adapter.py": 0.0,
            "load scripts/api.py": 0.20205354690551758,
            "load scripts/batch_hijack.py": 0.0,
            "load scripts/cldm.py": 0.002000570297241211,
            "load scripts/controlnet.py": 0.5245223045349121,
            "load scripts/controlnet_diffusers.py": 0.0,
            "load scripts/controlnet_lllite.py": 0.0,
            "load scripts/controlnet_lora.py": 0.0,
            "load scripts/controlnet_model_guess.py": 0.0010001659393310547,
            "load scripts/controlnet_sparsectrl.py": 0.0,
            "load scripts/controlnet_version.py": 0.0,
            "load scripts/enums.py": 0.0010001659393310547,
            "load scripts/external_code.py": 0.0,
            "load scripts/global_state.py": 0.0010001659393310547,
            "load scripts/hook.py": 0.0,
            "load scripts/infotext.py": 0.0,
            "load scripts/logging.py": 0.0010004043579101562,
            "load scripts/lvminthin.py": 0.0,
            "load scripts/movie2movie.py": 0.0,
            "load scripts/supported_preprocessor.py": 0.0010001659393310547,
            "load scripts/utils.py": 0.0010004043579101562,
            "load scripts/xyz_grid_support.py": 0.0,
            "load scripts/freeu.py": 0.10002660751342773,
            "load scripts/cc.py": 0.0029997825622558594,
            "load scripts/cc_callback.py": 0.03901100158691406,
            "load scripts/cc_colorpicker.py": 0.0,
            "load scripts/cc_const.py": 0.0,
            "load scripts/cc_hdr.py": 0.0,
            "load scripts/cc_scaling.py": 0.0,
            "load scripts/cc_settings.py": 0.03200817108154297,
            "load scripts/cc_style.py": 0.0,
            "load scripts/cc_xyz.py": 0.0,
            "load scripts/merge_block_weighted_extension.py": 0.040009498596191406,
            "load scripts/tagger.py": 0.10702824592590332,
            "load scripts/comments.py": 0.03300881385803223,
            "load scripts/refiner.py": 0.0010004043579101562,
            "load scripts/sampler.py": 0.0,
            "load scripts/seed.py": 0.0,
            "load scripts": 8.075949668884277,
            "load upscalers": 0.00600123405456543,
            "refresh VAE": 0.3540916442871094,
            "refresh textual inversion templates": 0.0,
            "scripts list_optimizers": 0.0010001659393310547,
            "scripts list_unets": 0.0,
            "reload hypernetworks": 0.0010023117065429688,
            "initialize extra networks": 0.010001420974731445,
            "cleanup temp dir": 0.0010004043579101562,
            "scripts before_ui_callback": 0.0010004043579101562,
            "create ui": 5.570947885513306,
            "gradio launch": 0.5461413860321045,
            "add APIs": 0.006002187728881836,
            "app_started_callback/lora_script.py": 0.0009999275207519531,
            "app_started_callback/tag_autocomplete_helper.py": 0.0030007362365722656,
            "app_started_callback/!adetailer.py": 0.0,
            "app_started_callback/api.py": 0.003000497817993164,
            "app_started_callback/tagger.py": 0.002000570297241211,
            "app_started_callback": 0.009001731872558594
        }
    },
    "Packages": [
        "absl-py==2.1.0",
        "accelerate==0.21.0",
        "addict==2.4.0",
        "aenum==3.1.15",
        "aiofiles==23.2.1",
        "aiohttp==3.9.5",
        "aiosignal==1.3.1",
        "albumentations==1.4.3",
        "altair==5.3.0",
        "antlr4-python3-runtime==4.9.3",
        "anyio==3.7.1",
        "astunparse==1.6.3",
        "async-timeout==4.0.3",
        "attrs==23.2.0",
        "beautifulsoup4==4.12.3",
        "blendmodes==2022",
        "certifi==2024.7.4",
        "cffi==1.16.0",
        "chardet==5.2.0",
        "charset-normalizer==3.3.2",
        "clean-fid==0.1.35",
        "click==8.1.7",
        "clip @ https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip#sha256=b5842c25da441d6c581b53a5c60e0c2127ebafe0f746f8e15561a006c6c3be6a",
        "colorama==0.4.6",
        "coloredlogs==15.0.1",
        "colorlog==6.8.2",
        "contourpy==1.2.1",
        "controlnet-aux==0.0.9",
        "cssselect2==0.7.0",
        "cycler==0.12.1",
        "Cython==3.0.10",
        "deepdanbooru==1.0.3",
        "deprecation==2.1.0",
        "depth_anything @ https://github.com/huchenlei/Depth-Anything/releases/download/v1.0.0/depth_anything-2024.1.22.0-py2.py3-none-any.whl#sha256=26c1d38b8c3c306b4a2197d725a4b989ff65f7ebcf4fb5a96a1b6db7fbd56780",
        "depth_anything_v2 @ https://github.com/MackinationsAi/UDAV2-ControlNet/releases/download/v1.0.0/depth_anything_v2-2024.7.1.0-py2.py3-none-any.whl#sha256=6848128867d1f7c7519d88df0f88bfab89100dc5225259c4d7cb90325c308c9f",
        "diskcache==5.6.3",
        "dsine @ https://github.com/sdbds/DSINE/releases/download/1.0.2/dsine-2024.3.23-py3-none-any.whl#sha256=b9ea3bacce09f9b3f7fb4fa12471da7e465b2f9a60412711105a9238db280442",
        "easydict==1.13",
        "einops==0.4.1",
        "exceptiongroup==1.2.2",
        "facexlib==0.3.0",
        "fastapi==0.94.0",
        "ffmpy==0.3.3",
        "filelock==3.15.4",
        "filterpy==1.4.5",
        "flatbuffers==24.3.25",
        "fonttools==4.53.1",
        "frozenlist==1.4.1",
        "fsspec==2024.6.1",
        "ftfy==6.2.0",
        "fvcore==0.1.5.post20221221",
        "gast==0.6.0",
        "gdown==5.2.0",
        "geffnet==1.0.2",
        "gitdb==4.0.11",
        "GitPython==3.1.32",
        "glob2==0.5",
        "google-pasta==0.2.0",
        "gradio==3.41.2",
        "gradio_client==0.5.0",
        "grpcio==1.65.1",
        "h11==0.12.0",
        "h5py==3.11.0",
        "handrefinerportable @ https://github.com/huchenlei/HandRefinerPortable/releases/download/v1.0.1/handrefinerportable-2024.2.12.0-py2.py3-none-any.whl#sha256=1e6c702905919f4c49bcb2db7b20d334e8458a7555cd57630600584ec38ca6a9",
        "httpcore==0.15.0",
        "httpx==0.24.1",
        "huggingface-hub==0.24.3",
        "humanfriendly==10.0",
        "idna==3.7",
        "imageio==2.34.2",
        "importlib_metadata==8.2.0",
        "importlib_resources==6.4.0",
        "inflection==0.5.1",
        "insightface @ https://github.com/Gourieff/Assets/raw/main/Insightface/insightface-0.7.3-cp310-cp310-win_amd64.whl#sha256=47aa0571b2aadd8545d4bc7615dfbc374c10180c283b7ac65058fcb41ed4df86",
        "iopath==0.1.9",
        "jax==0.4.31",
        "jaxlib==0.4.31",
        "Jinja2==3.1.4",
        "joblib==1.4.2",
        "jsonmerge==1.8.0",
        "jsonschema==4.23.0",
        "jsonschema-specifications==2023.12.1",
        "keras==3.4.1",
        "kiwisolver==1.4.5",
        "kornia==0.6.7",
        "lark==1.1.2",
        "lazy_loader==0.4",
        "libclang==18.1.1",
        "lightning-utilities==0.11.6",
        "llvmlite==0.43.0",
        "lxml==5.2.2",
        "manifold3d==2.5.1",
        "Markdown==3.6",
        "markdown-it-py==3.0.0",
        "MarkupSafe==2.1.5",
        "matplotlib==3.9.1",
        "mdurl==0.1.2",
        "mediapipe==0.10.14",
        "ml-dtypes==0.4.0",
        "mpmath==1.3.0",
        "multidict==6.0.5",
        "namex==0.0.8",
        "networkx==3.3",
        "numba==0.60.0",
        "numpy==1.26.2",
        "omegaconf==2.2.3",
        "onnx==1.16.2",
        "onnxruntime==1.18.1",
        "open-clip-torch==2.20.0",
        "opencv-contrib-python==4.10.0.84",
        "opencv-python==4.10.0.84",
        "opencv-python-headless==4.10.0.84",
        "opt-einsum==3.3.0",
        "optree==0.12.1",
        "orjson==3.10.6",
        "packaging==24.1",
        "pandas==2.2.2",
        "piexif==1.1.3",
        "Pillow==9.5.0",
        "pillow-avif-plugin==1.4.3",
        "pip==24.2",
        "platformdirs==4.2.2",
        "portalocker==2.10.1",
        "prettytable==3.10.2",
        "protobuf==4.25.4",
        "psutil==5.9.5",
        "py-cpuinfo==9.0.0",
        "pycollada==0.8",
        "pycparser==2.22",
        "pydantic==1.10.17",
        "pydub==0.25.1",
        "Pygments==2.18.0",
        "pyparsing==3.1.2",
        "pyreadline3==3.4.1",
        "PySocks==1.7.1",
        "python-dateutil==2.9.0.post0",
        "python-multipart==0.0.9",
        "pytorch-lightning==1.9.4",
        "pytz==2024.1",
        "PyWavelets==1.6.0",
        "pywin32==306",
        "PyYAML==6.0.1",
        "referencing==0.35.1",
        "regex==2024.7.24",
        "reportlab==4.2.2",
        "requests==2.32.3",
        "resize-right==0.0.2",
        "rich==13.7.1",
        "rpds-py==0.19.1",
        "Rtree==1.3.0",
        "safetensors==0.4.2",
        "scikit-image==0.21.0",
        "scikit-learn==1.5.1",
        "scipy==1.14.0",
        "seaborn==0.13.2",
        "semantic-version==2.10.0",
        "sentencepiece==0.2.0",
        "setuptools==69.5.1",
        "shapely==2.0.5",
        "six==1.16.0",
        "smmap==5.0.1",
        "sniffio==1.3.1",
        "sounddevice==0.4.7",
        "soupsieve==2.5",
        "spandrel==0.3.4",
        "spandrel_extra_arches==0.1.1",
        "starlette==0.26.1",
        "svg.path==6.3",
        "svglib==1.5.1",
        "sympy==1.13.1",
        "tabulate==0.9.0",
        "tensorboard==2.17.0",
        "tensorboard-data-server==0.7.2",
        "tensorflow==2.17.0",
        "tensorflow-intel==2.17.0",
        "tensorflow-io-gcs-filesystem==0.31.0",
        "termcolor==2.4.0",
        "threadpoolctl==3.5.0",
        "tifffile==2024.7.24",
        "timm==0.6.7",
        "tinycss2==1.3.0",
        "tokenizers==0.13.3",
        "tomesd==0.1.3",
        "tomli==2.0.1",
        "toolz==0.12.1",
        "torch==2.1.2+cu121",
        "torchdiffeq==0.2.3",
        "torchmetrics==1.4.0.post0",
        "torchsde==0.2.6",
        "torchvision==0.16.2+cu121",
        "tqdm==4.66.4",
        "trampoline==0.1.2",
        "transformers==4.30.2",
        "trimesh==4.4.3",
        "typing_extensions==4.12.2",
        "tzdata==2024.1",
        "ultralytics==8.2.70",
        "ultralytics-thop==2.0.0",
        "urllib3==2.2.2",
        "uvicorn==0.30.3",
        "vhacdx==0.0.8.post1",
        "wcwidth==0.2.13",
        "webencodings==0.5.1",
        "websockets==11.0.3",
        "Werkzeug==3.0.3",
        "wheel==0.43.0",
        "wrapt==1.16.0",
        "xatlas==0.0.9",
        "xxhash==3.4.1",
        "yacs==0.1.8",
        "yapf==0.40.2",
        "yarl==1.9.4",
        "zipp==3.19.2"
    ]
}

Console logs

see above

Additional information

No response

aleph23 commented 2 months ago

It's certainly less than ideal, but for the last several versions of webui, I've been renaming all of my extensions install.py files to install.bak after their initial install. I started doing this just to speed launch times, but it's ended up also helping with dependency issues too. I've also put a 'protobuf==3.20.2' line into my requirements.txt.

I wrote this script to help automate the renaming process (invoke with python renamer.py extensions install.py install.bak):

import os
import sys

def rename_files(root_dir, pattern, new_name):
    for dirpath, dirnames, filenames in os.walk(root_dir):
        for filename in filenames:
            if pattern in filename and not os.path.exists(filename):
                old_path = os.path.join(dirpath, filename)
                new_path = os.path.join(dirpath, new_name)
                print(f'renaming {old_path} to {new_path}')
                os.rename(old_path, new_path)

if __name__ == '__main__':
    if len(sys.argv) != 4:
        print(f'Usage: {sys.argv[0]} ROOT_DIR=the beginning folder, PATTERN=what to search for, NEW_NAME=new_name')
        sys.exit(1)

    root_dir = sys.argv[1]
    pattern = sys.argv[2]
    new_name = sys.argv[3]

    rename_files(root_dir, pattern, new_name)
Xephier102 commented 2 months ago

It's certainly less than ideal, but for the last several versions of webui, I've been renaming all of my extensions install.py files to install.bak after their initial install. I started doing this just to speed launch times, but it's ended up also helping with dependency issues too. I've also put a 'protobuf==3.20.2' line into my requirements.txt.

I wrote this script to help automate the renaming process (invoke with python renamer.py extensions install.py install.bak):

import os
import sys

def rename_files(root_dir, pattern, new_name):
    for dirpath, dirnames, filenames in os.walk(root_dir):
        for filename in filenames:
            if pattern in filename and not os.path.exists(filename):
                old_path = os.path.join(dirpath, filename)
                new_path = os.path.join(dirpath, new_name)
                print(f'renaming {old_path} to {new_path}')
                os.rename(old_path, new_path)

if __name__ == '__main__':
    if len(sys.argv) != 4:
        print(f'Usage: {sys.argv[0]} ROOT_DIR=the beginning folder, PATTERN=what to search for, NEW_NAME=new_name')
        sys.exit(1)

    root_dir = sys.argv[1]
    pattern = sys.argv[2]
    new_name = sys.argv[3]

    rename_files(root_dir, pattern, new_name)

Yea, I gotta say, as someone that's autistic, and therefore somewhat OCD, this program has been a nightmare. I've gotten it working and gotten some good results, but due to having only 8gbvram, I've been doing all I can to optimize it, which is nearly impossible due to the massive maze of mismatched dependencies/versions..

Makes me miss the days when we could just click to download an install file, double click, and the damn thing would just work..

aleph23 commented 2 months ago

I COMPLETELY understand. I'm stuck with a 2070 laptop at the moment, as well as mild neuro-superiority! ;-D

Since writing my above comment I have added these (see below) to the bottom of my 'requirements_versions.txt' as they seem to be the biggest troublemakers. And I've upgraded to torch-2.3.1+cu118. Too soon to say whether its a good move or not tho.

tensorflow
tensorboard
mediapipe
onnx
onnxruntime
onnxruntime_gpu
timm==0.6.7
fsspec[http]<=2024.5.0,>=2023.1.0
Theliel commented 1 month ago

Same Issues. In my case, was solved with the first two in the next list. The other changes helpme with some extensions (using pytorch 2.5.0 Cuda12.4/cudnn9.5)

protobuf==4.25.5 open-clip-torch==2.24.0 fastapi==0.115.2

I heve only some warnings about deprecation, but all its working perfectly

Xephier102 commented 1 month ago

Same Issues. In my case, was solved with the first two in the next list. The other changes helpme with some extensions (using pytorch 2.5.0 Cuda12.4/cudnn9.5)

protobuf==4.25.5 open-clip-torch==2.24.0 fastapi==0.115.2

I heve only some warnings about deprecation, but all its working perfectly

I COMPLETELY understand. I'm stuck with a 2070 laptop at the moment, as well as mild neuro-superiority! ;-D

Since writing my above comment I have added these (see below) to the bottom of my 'requirements_versions.txt' as they seem to be the biggest troublemakers. And I've upgraded to torch-2.3.1+cu118. Too soon to say whether its a good move or not tho.

tensorflow
tensorboard
mediapipe
onnx
onnxruntime
onnxruntime_gpu
timm==0.6.7
fsspec[http]<=2024.5.0,>=2023.1.0

I've been a ways since writing that post on here. I started out with easydiffussion on windows, swapped to A1111, swapped to Linux(Manjaro), swapped to Fedora Linux, then back to Manjaro, swapped to SD Next, swapped to ComfyUI, bought a new PC, https://youtube.com/shorts/2tNUlMZ2xz8?si=s_vVEByNrLd5KdmQ

Got Garuda Linux going on that.

And now the program is functioning just fine, and my only real struggles are in attempting to refine details on my images. Cuz even with tiling, it's a pain to get people's faces to not look mangled if they're more than 10-20 feet back from the 'camera' (or however you define the spacial relations within the image). I've got a 16gb card now, I hope a 24gb card isn't necessary just to refine details more on the initial output image. Though maybe no one can refine details that much without inpainting.

Oh, and with relevance to this conversation; it's so much easier to get SD webuis working in Linux than Windows. So if you're gonna get serious about using this stuff, I recommend at least dual booting Linux. Although, if you have certain laptops, like anything made by gigabyte, you may get kinda screwed either way. I personally refuse to buy anything made by that company again. Also MSI, but that's a separate thing (they've made something as simple as collecting a key for a bonus game that came with a peice of hardware i bought, into a complete friggin nightmare. So, screw that company).

As for Linux distros, in my experience, Arch distros like Manjaro are solid if you've got good knowledge in PCs and don't mind fixing issues a lot. Cuz it's got rolling(constant) updates, which tend to break things. But it's fully customisable. But also a pain.

Ubuntu is prob the best bet for newbs, but don't expect privacy(from corporations) on a distro that mainstream. Though it'd still be better than chrome distro, in which you may as well just hand all your data to Google and get it over with, lol.

Otherwise, in terms of webuis, get comfyui unless you're a computer moron and can't figure things out on your own. It's superior, well supported, and doesn't even force you to downgrade your python install (or install it twice) just to get the program functioning. Also A1111 and SDN got some built in censorship. So, if you want (mostly) unrestricted image generation, it's the one to go with.

Though in terms of that last note, keep an eye on the versions/updates for it. If it gets an update in which OpenAI helps to overhaul the thing, like they did with SDN, then it may be best to get the version before that.

As a general note, use PCs rather than laptops for this stuff if you can, and try to choose hardware thats got better Linux/open source support. There's not a lot, cuz M$ has a lot of money to keep things that way, but some do. AMD is good for open source.