AUTOMATIC1111 / stable-diffusion-webui

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

Of course my automatic was broken after update on 1.7 #14404

Closed Vizzarto closed 9 months ago

Vizzarto commented 10 months ago

Checklist

What happened?

Sorry for my english. After git pull command, can't start automatic. Please help. How to fix it?

Steps to reproduce the problem

  1. Enter git pull in cmd folder
  2. start webui-user.bat
  3. just gives me a message to push any button.. and then it closes

What should have happened?

Automatic should to start)

What browsers do you use to access the UI ?

Other

Sysinfo

sysinfo-2023-12-22-13-17.json

Console logs

venv "E:\Ai arts\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep  5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
Launching Web UI with arguments: --xformers --autolaunch
Civitai Helper: Get Custom Model Folder

========================= a1111-sd-webui-lycoris =========================
Starting from stable-diffusion-webui version 1.5.0
a1111-sd-webui-lycoris extension is no longer needed

All its features have been integrated into the native LoRA extension
LyCORIS models can now be used as if there are regular LoRA models

This extension has been automatically deactivated
Please remove this extension
==========================================================================

[-] ADetailer initialized. version: 23.11.1, num models: 9
2023-12-22 16:07:20,115 - ControlNet - INFO - ControlNet v1.1.422
ControlNet preprocessor location: E:\Ai arts\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2023-12-22 16:07:20,308 - ControlNet - INFO - ControlNet v1.1.422
Loading weights [8d236da06c] from E:\Ai arts\stable-diffusion-webui\models\Stable-diffusion\Main\sxzLuma_09XVAE.safetensors
Traceback (most recent call last):
  File "E:\Ai arts\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "E:\Ai arts\stable-diffusion-webui\launch.py", line 44, in main
    start()
  File "E:\Ai arts\stable-diffusion-webui\modules\launch_utils.py", line 464, in start
    webui.webui()
  File "E:\Ai arts\stable-diffusion-webui\webui.py", line 64, in webui
    shared.demo = ui.create_ui()
  File "E:\Ai arts\stable-diffusion-webui\modules\ui.py", line 263, in create_ui
    scripts.scripts_txt2img.initialize_scripts(is_img2img=False)
  File "E:\Ai arts\stable-diffusion-webui\modules\scripts.py", line 523, in initialize_scripts
    script = script_data.script_class()
  File "E:\Ai arts\stable-diffusion-webui\extensions\sd-webui-kohya-hiresfix\scripts\khrfix.py", line 29, in __init__
    self.config: DictConfig = OmegaConf.load(CONFIG_PATH)
  File "E:\Ai arts\stable-diffusion-webui\venv\lib\site-packages\omegaconf\omegaconf.py", line 188, in load
    obj = yaml.load(f, Loader=get_yaml_loader())
  File "E:\Ai arts\stable-diffusion-webui\venv\lib\site-packages\yaml\__init__.py", line 79, in load
    loader = Loader(stream)
  File "E:\Ai arts\stable-diffusion-webui\venv\lib\site-packages\yaml\loader.py", line 34, in __init__
    Reader.__init__(self, stream)
  File "E:\Ai arts\stable-diffusion-webui\venv\lib\site-packages\yaml\reader.py", line 85, in __init__
    self.determine_encoding()
  File "E:\Ai arts\stable-diffusion-webui\venv\lib\site-packages\yaml\reader.py", line 135, in determine_encoding
    self.update(1)
  File "E:\Ai arts\stable-diffusion-webui\venv\lib\site-packages\yaml\reader.py", line 169, in update
    self.check_printable(data)
  File "E:\Ai arts\stable-diffusion-webui\venv\lib\site-packages\yaml\reader.py", line 143, in check_printable
    raise ReaderError(self.name, position, ord(character),
yaml.reader.ReaderError: unacceptable character #x0000: special characters are not allowed
  in "E:\Ai arts\stable-diffusion-webui\extensions\sd-webui-kohya-hiresfix\config.yaml", position 0
Creating model from config: E:\Ai arts\stable-diffusion-webui\configs\v1-inference.yaml
Applying attention optimization: xformers... done.
Model loaded in 6.1s (load weights from disk: 0.3s, create model: 0.5s, apply weights to model: 4.6s, apply half(): 0.1s, calculate empty prompt: 0.2s).

Additional information

No response

Vizzarto commented 10 months ago

Ok, if i deleted all extension from folder it starts. I will look which extension is broken.

Vizzarto commented 10 months ago

Solve it. It was kohya-hiresfix extention. Just deleted it from extension folder.

w-e-w commented 10 months ago

is likely caused by sd-webui-kohya-hiresfix\config.yaml being corrupted this triggers a chain reaction that prevents this extension too initialize and cause web UI to crash Fix PR on extension side https://github.com/wcde/sd-webui-kohya-hiresfix/pull/17 Fix PR on webui side https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14407


also this is likely not caused by 1.7 update but just some sort of freak coincidence that the file is just corrupted after you update to 1.7

w-e-w commented 9 months ago

fixed merged