AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: embedding in .pt files doesn't appear #14089

Closed Cedri4 closed 7 months ago

Cedri4 commented 7 months ago

Is there an existing issue for this?

What happened?

My embeddings in .pt doesn't appears image image

Steps to reproduce the problem

  1. Go to embedding tab and have .pt files.
  2. look

What should have happened?

I shloud have seen all of my embeddings in .pt

Sysinfo

Windows

What browsers do you use to access the UI ?

Brave

Console logs

Already up to date.
venv "F:\Stable-Diffusion\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.6.0-2-g4afaaf8a
Commit hash: 4afaaf8a020c1df457bcf7250cb1c7f609699fa7
ReActor preheating... Device: CUDA
Launching Web UI with arguments: --xformers --lowvram --opt-sdp-attention --opt-channelslast --upcast-sampling --no-half --ckpt-dir F:\Stable-Diffusion\SD-model\Stable-diffusion --controlnet-dir F:\Stable-Diffusion\SD-model\controlnet --lora-dir F:\Stable-Diffusion\SD-model\lora --embeddings-dir F:\Stable-Diffusion\SD-model\embeddings --vae-dir F:\Stable-Diffusion\SD-model\VAE
Civitai Helper: Get Custom Model Folder
[-] ADetailer initialized. version: 23.11.1, num models: 9
CivitAI Browser+: Aria2 RPC started
Using sqlite file: F:\Stable-Diffusion\stable-diffusion-webui\extensions\sd-webui-agent-scheduler\task_scheduler.sqlite32023-11-24 19:58:10,827 - ControlNet - INFO - ControlNet v1.1.419
ControlNet preprocessor location: F:\Stable-Diffusion\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2023-11-24 19:58:11,060 - ControlNet - INFO - ControlNet v1.1.419
sd-webui-prompt-all-in-one background API service started successfully.
19:58:11 - ReActor - STATUS - Running v0.5.1-b3
Loading weights [53bb4fdc63] from F:\Stable-Diffusion\SD-model\Stable-diffusion\animeArtDiffusionXL_alpha3.safetensors
Civitai Helper: Set Proxy:
Civitai Helper: Set Proxy:
Creating model from config: F:\Stable-Diffusion\stable-diffusion-webui\repositories\generative-models\configs\inference\sd_xl_base.yaml
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 33.8s (prepare environment: 8.3s, import torch: 5.1s, import gradio: 1.3s, setup paths: 1.1s, initialize shared: 0.3s, other imports: 0.9s, setup codeformer: 0.3s, load scripts: 6.9s, create ui: 3.0s, gradio launch: 1.0s, app_started_callback: 5.4s).
Applying attention optimization: xformers... done.
Model loaded in 33.5s (load weights from disk: 2.5s, create model: 0.9s, apply weights to model: 16.1s, apply channels_last: 0.7s, apply float(): 6.9s, load textual inversion embeddings: 2.2s, calculate empty prompt: 4.1s).
Restarting UI...
Closing server running on port: 7860
Civitai Helper: Get Custom Model Folder
[-] ADetailer initialized. version: 23.11.1, num models: 9
CivitAI Browser+: Aria2 RPC restarted
2023-11-24 20:17:36,129 - ControlNet - INFO - ControlNet v1.1.419
sd-webui-prompt-all-in-one background API service started successfully.
Civitai Helper: Set Proxy:
Civitai Helper: Set Proxy:
F:\Stable-Diffusion\stable-diffusion-webui\extensions\infinite-zoom-automatic1111-webui\iz_helpers\ui.py:253: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  output_video = gr.Video(label="Output").style(width=512, height=512)
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 15.3s (load scripts: 4.3s, reload script modules: 0.1s, create ui: 1.7s, gradio launch: 0.9s, app_started_callback: 8.1s).
Traceback (most recent call last):
  File "F:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "F:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
    result = await self.call_function(
  File "F:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function    prediction = await anyio.to_thread.run_sync(
  File "F:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "F:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "F:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run    result = context.run(func, *args)
  File "F:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
    response = f(*args, **kwargs)
  File "F:\Stable-Diffusion\stable-diffusion-webui\modules\ui_extra_networks.py", line 392, in pages_html
    return refresh()
  File "F:\Stable-Diffusion\stable-diffusion-webui\modules\ui_extra_networks.py", line 400, in refresh
    ui.pages_contents = [pg.create_html(ui.tabname) for pg in ui.stored_extra_pages]
  File "F:\Stable-Diffusion\stable-diffusion-webui\modules\ui_extra_networks.py", line 400, in <listcomp>
    ui.pages_contents = [pg.create_html(ui.tabname) for pg in ui.stored_extra_pages]
  File "F:\Stable-Diffusion\stable-diffusion-webui\modules\ui_extra_networks.py", line 162, in create_html
    self.items = {x["name"]: x for x in self.list_items()}
  File "F:\Stable-Diffusion\stable-diffusion-webui\modules\ui_extra_networks.py", line 162, in <dictcomp>
    self.items = {x["name"]: x for x in self.list_items()}
  File "F:\Stable-Diffusion\stable-diffusion-webui\extensions-builtin\Lora\ui_extra_networks_lora.py", line 69, in list_items
    for index, name in enumerate(networks.available_networks):
RuntimeError: dictionary changed size during iteration

Additional information

Only the embeddings in .safetensors appears

Cedri4 commented 7 months ago

Edit also easynegative.safetensors doesn't appears

chromesun commented 7 months ago

If you load a SDXL model such as animeArtDiffusionXL_alpha3.safetensors, a1111 will not display SD1.x embeddings. SDXL cannot use SD1.x embeddings :-(

Cedri4 commented 7 months ago

Thank you