AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: Clean Installation failed #15274

Open sst030164 opened 8 months ago

sst030164 commented 8 months ago

Checklist

What happened?

I tried WebUI clean install but failed.

Steps to reproduce the problem

  1. git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

  2. cd stable-diffusion-webui

  3. webui-user.bat

What should have happened?

WebUI start after installation completed.

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

sysinfo-2024-03-16-04-21.json

Console logs

c:\tools>git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
Cloning into 'stable-diffusion-webui'...
remote: Enumerating objects: 32107, done.
remote: Counting objects: 100% (62/62), done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 32107 (delta 28), reused 44 (delta 21), pack-reused 32045
Receiving objects: 100% (32107/32107), 34.15 MiB | 21.77 MiB/s, done.
Resolving deltas: 100% (22463/22463), done.

c:\tools>cd stable-diffusion-webui

c:\tools\stable-diffusion-webui>webui-user.bat
Creating venv in directory c:\tools\stable-diffusion-webui\venv using python "C:\Users\sduser\AppData\Local\Programs\Python\Python310\python.exe"
venv "c:\tools\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.8.0
Commit hash: bef51aed032c0aaa5cfd80445bc4cf0d85b408b5
Installing clip
Installing open_clip
Cloning assets into C:\tools\stable-diffusion-webui\repositories\stable-diffusion-webui-assets...
Cloning into 'C:\tools\stable-diffusion-webui\repositories\stable-diffusion-webui-assets'...
remote: Enumerating objects: 20, done.
remote: Counting objects: 100% (20/20), done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 20 (delta 0), reused 20 (delta 0), pack-reused 0
Receiving objects: 100% (20/20), 132.70 KiB | 4.15 MiB/s, done.
Cloning Stable Diffusion into C:\tools\stable-diffusion-webui\repositories\stable-diffusion-stability-ai...
Cloning into 'C:\tools\stable-diffusion-webui\repositories\stable-diffusion-stability-ai'...
remote: Enumerating objects: 580, done.
remote: Counting objects: 100% (357/357), done.
remote: Compressing objects: 100% (128/128), done.
Receiving objects:  92% (534/580), 66.90 MiB | 22.28 MiB/sremote: Total 580 (delta 260), reused 229 (delta 229), pack-reReceiving objects: 100% (580/580), 73.44 MiB | 22.12 MiB/s, done.

Resolving deltas: 100% (279/279), done.
Cloning Stable Diffusion XL into C:\tools\stable-diffusion-webui\repositories\generative-models...
Cloning into 'C:\tools\stable-diffusion-webui\repositories\generative-models'...
remote: Enumerating objects: 903, done.
remote: Counting objects: 100% (532/532), done.
remote: Compressing objects: 100% (249/249), done.
remote: Total 903 (delta 397), reused 296 (delta 282), pack-reused 371
Receiving objects: 100% (903/903), 42.69 MiB | 20.76 MiB/s, done.
Resolving deltas: 100% (474/474), done.
Cloning K-diffusion into C:\tools\stable-diffusion-webui\repositories\k-diffusion...
Cloning into 'C:\tools\stable-diffusion-webui\repositories\k-diffusion'...
remote: Enumerating objects: 1340, done.
remote: Counting objects: 100% (622/622), done.
remote: Compressing objects: 100% (86/86), done.
remote: Total 1340 (delta 576), reused 547 (delta 536), pack-reused 718
Receiving objects: 100% (1340/1340), 242.04 KiB | 5.26 MiB/s, done.
Resolving deltas: 100% (939/939), done.
Cloning BLIP into C:\tools\stable-diffusion-webui\repositories\BLIP...
Cloning into 'C:\tools\stable-diffusion-webui\repositories\BLIP'...
remote: Enumerating objects: 277, done.
remote: Counting objects: 100% (165/165), done.
remote: Compressing objects: 100% (30/30), done.

Receiving objects: 100% (277/277), 7.03 MiB | 17.87 MiB/s, done.
Resolving deltas: 100% (152/152), done.
Installing requirements
Launching Web UI with arguments:
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
==============================================================================
You are running torch 2.0.1+cu118.
The program is tested to work with torch 2.1.2.
To reinstall the desired version, run with commandline flag --reinstall-torch.
Beware that this will cause a lot of large files to be downloaded, as well as
there are reports of issues with training tab on the latest version.

Use --skip-version-check commandline argument to disable this check.
==============================================================================
=============================================================================
You are running gradio 3.50.2.
The program is designed to work with gradio 3.41.2.
Using a different version of gradio is extremely likely to break the program.

Reasons why you have the mismatched gradio version can be:
  - you use --skip-install flag.
  - you use webui.py to start the program instead of launch.py.
  - an extension installs the incompatible gradio version.

Use --skip-version-check commandline argument to disable this check.
=============================================================================
Downloading: "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors" to C:\tools\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors

100%|█████████████████████████████████████████████████████████████████████████████| 3.97G/3.97G [02:54<00:00, 24.5MB/s]
*** Error creating UI for None:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for None:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for None:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for Hypertile:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for None:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for None:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for None:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for None:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for None:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for None:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for None:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for None:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for Hypertile:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for None:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for None:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for None:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for None:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for None:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for None:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for None:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for None:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
*** Error creating UI for None:
    Traceback (most recent call last):
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 631, in create_script_ui
        self.create_script_ui_inner(script)
      File "C:\tools\stable-diffusion-webui\modules\scripts.py", line 636, in create_script_ui_inner
        import modules.api.models as api_models
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
        ).generate_model()
      File "C:\tools\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
        DynamicModel.__config__.allow_population_by_field_name = True
      File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\pydantic\_internal\_model_construction.py", line 221, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
Calculating sha256 for C:\tools\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors: Traceback (most recent call last):
  File "c:\tools\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "c:\tools\stable-diffusion-webui\launch.py", line 44, in main
    start()
  File "c:\tools\stable-diffusion-webui\modules\launch_utils.py", line 469, in start
    webui.webui()
  File "c:\tools\stable-diffusion-webui\webui.py", line 64, in webui
    shared.demo = ui.create_ui()
  File "C:\tools\stable-diffusion-webui\modules\ui.py", line 1043, in create_ui
    train_embedding.click(
  File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\gradio\events.py", line 186, in __call__
    dep, dep_index = Context.root_block.set_event_trigger(
  File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\gradio\blocks.py", line 977, in set_event_trigger
    "inputs": [block._id for block in inputs],
  File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\gradio\blocks.py", line 977, in <listcomp>
    "inputs": [block._id for block in inputs],
AttributeError: 'NoneType' object has no attribute '_id'
6ce0161689b3853acaa03779ec93eafe75a02f4ced659bee03f50797806fa2fa
Loading weights [6ce0161689] from C:\tools\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
Creating model from config: C:\tools\stable-diffusion-webui\configs\v1-inference.yaml
creating model quickly: OSError
Traceback (most recent call last):
  File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\huggingface_hub\utils\_errors.py", line 304, in hf_raise_for_status
    response.raise_for_status()
  File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\requests\models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/None/resolve/main/config.json

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\transformers\utils\hub.py", line 385, in cached_file
    resolved_file = hf_hub_download(
  File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\huggingface_hub\utils\_validators.py", line 118, in _inner_fn
    return fn(*args, **kwargs)
  File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\huggingface_hub\file_download.py", line 1403, in hf_hub_download
    raise head_call_error
  File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\huggingface_hub\file_download.py", line 1261, in hf_hub_download
    metadata = get_hf_file_metadata(
  File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\huggingface_hub\utils\_validators.py", line 118, in _inner_fn
    return fn(*args, **kwargs)
  File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\huggingface_hub\file_download.py", line 1667, in get_hf_file_metadata
    r = _request_wrapper(
  File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\huggingface_hub\file_download.py", line 385, in _request_wrapper
    response = _request_wrapper(
  File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\huggingface_hub\file_download.py", line 409, in _request_wrapper
    hf_raise_for_status(response)
  File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\huggingface_hub\utils\_errors.py", line 352, in hf_raise_for_status
    raise RepositoryNotFoundError(message, response) from e
huggingface_hub.utils._errors.RepositoryNotFoundError: 404 Client Error. (Request ID: Root=1-65f51cc2-11265c6371b96e64174d6563;ac9584ef-5286-4b61-9cda-01b214904c3a)

Repository Not Found for url: https://huggingface.co/None/resolve/main/config.json.
Please make sure you specified the correct `repo_id` and `repo_type`.
If you are trying to access a private or gated repo, make sure you are authenticated.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\threading.py", line 973, in _bootstrap
    self._bootstrap_inner()
  File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "c:\tools\stable-diffusion-webui\modules\initialize.py", line 148, in load_model
    shared.sd_model  # noqa: B018
  File "C:\tools\stable-diffusion-webui\modules\shared_items.py", line 133, in sd_model
    return modules.sd_models.model_data.get_sd_model()
  File "C:\tools\stable-diffusion-webui\modules\sd_models.py", line 621, in get_sd_model
    load_model()
  File "C:\tools\stable-diffusion-webui\modules\sd_models.py", line 724, in load_model
    sd_model = instantiate_from_config(sd_config.model)
  File "C:\tools\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\util.py", line 89, in instantiate_from_config
    return get_obj_from_str(config["target"])(**config.get("params", dict()))
  File "C:\tools\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 563, in __init__
    self.instantiate_cond_stage(cond_stage_config)
  File "C:\tools\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 630, in instantiate_cond_stage
    model = instantiate_from_config(config)
  File "C:\tools\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\util.py", line 89, in instantiate_from_config
    return get_obj_from_str(config["target"])(**config.get("params", dict()))
  File "C:\tools\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\modules\encoders\modules.py", line 104, in __init__
    self.transformer = CLIPTextModel.from_pretrained(version)
  File "C:\tools\stable-diffusion-webui\modules\sd_disable_initialization.py", line 68, in CLIPTextModel_from_pretrained
    res = self.CLIPTextModel_from_pretrained(None, *model_args, config=pretrained_model_name_or_path, state_dict={}, **kwargs)
  File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\transformers\modeling_utils.py", line 2926, in from_pretrained
    resolved_config_file = cached_file(
  File "C:\Users\sduser\AppData\Local\Programs\Python\Python310\Lib\site-packages\transformers\utils\hub.py", line 406, in cached_file
    raise EnvironmentError(
OSError: None is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
If this is a private repository, make sure to pass a token having permission to this repo either by logging in with `huggingface-cli login` or by passing `token=<your_token>`

Failed to create model quickly; will retry using slow method.
Applying attention optimization: Doggettx... done.
Model loaded in 8.3s (calculate hash: 3.6s, create model: 2.4s, apply weights to model: 2.0s, calculate empty prompt: 0.1s).
Press any key to continue . . .

Additional information

I tried to use sd.webui.zip package, but it does not work with another error.

lcmiracle-yh commented 8 months ago

Seems like it's trying to download sd1.5 base model from the wrong url, not sure why. But what if you add "--no-download-sd-model" to the commandline_args in your webui_user.bat?

sst030164 commented 8 months ago

@lcmiracle-yh Thank you for your comment. I added "--no-download-sd-model" to COMMANDLINE_ARGS, and run "webui-user.bat", but the same error happened...

lcmiracle-yh commented 8 months ago

@lcmiracle-yh Thank you for your comment. I added "--no-download-sd-model" to COMMANDLINE_ARGS, and run "webui-user.bat", but the same error happened...

I'm not sure why in your original posted logs, it is downloading the model from

Downloading: "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors" to C:\tools\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors

Which is actually 404 so maybe your local code is outdated? Try git pull or download the latest installation (get remove that command line argument I told you to add)

sst030164 commented 8 months ago

@lcmiracle-yh The following "sd_models.py" includes the url of "v1-5-pruned-emaonly.safetensors". And it seems alive because I can download file by using Web Browser. https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/master/modules/sd_models.py

sst030164 commented 8 months ago

Thank you. Got it. I’m looking forward to next update of web-ui.