stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: ValueError: not enough values to unpack (expected 2, got 1)
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
I started stable diffusion, then I wanted to make an x/y Plot (x=seed y= checkpointname) and before each generated picture the error message is being generated. But it still generates the picture... and Yes, in the prompt is a Lora included. (because my browser isn't listet I write it here: I use Opera GX)
Steps to reproduce the problem
- start webui-user.bat
- Press input prompt + negative prompt (also change resolution and steps)
- input an x/y field (for me x= seed and y= checkpointname)
- watch the command log generating an error before each picture generated
What should have happened?
don't generate an error.
Commit where the problem happens
65995a2e
What platforms do you use to access the UI ?
Windows
What browsers do you use to access the UI ?
No response
Command Line Arguments
--deepdanbooru --xformers --api --cors-allow-origins http://localhost:5173
List of extensions
ABG_extension | 903d3dbb PromptGallery-stable-diffusion-webui | 996badce aesthetic-gradients | 411889ca deforum-for-automatic1111-webui | bb6249bb openOutpaint-webUI-extension | 99f52af2 sd_dreambooth_extension | 4ca69a90 sd_smartprocess | 5fa74185 stable-diffusion-webui-depthmap-script | c610d514 stable-diffusion-webui-inspiration | 0f3f699d LDSR Lora ScuNET SwinIR | prompt-bracket-checker
Console logs
venv "F:\Stable Diffusion\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)]
Commit hash: 65995a2ea38a1a0afd06cb508a4f65fd0d3a1743
Installing requirements for Web UI
Installing requirements for Anime Background Remover
Installing requirements for Anime Background Remover
Installing requirements for Anime Background Remover
preinit openOutpaint
Submodule path 'app': checked out '6ec9907d8e5979f42e41738711b10af83c96a770'
Installing requirements for Prompt Gallery
#######################################################################################################
Initializing Dreambooth
If submitting an issue on github, please provide the below text for debugging purposes:
Python revision: 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Dreambooth revision: 4ca69a904f5ddd5651d87032b3dca515eea505ba
SD-WebUI revision: 65995a2ea38a1a0afd06cb508a4f65fd0d3a1743
Checking Dreambooth requirements...
[+] bitsandbytes version 0.35.0 installed.
[+] diffusers version 0.10.2 installed.
[+] transformers version 4.25.1 installed.
[+] xformers version 0.0.14.dev0 installed.
[+] torch version 1.13.1+cu117 installed.
[+] torchvision version 0.14.1+cu117 installed.
#######################################################################################################
loading Smart Crop reqs from F:\Stable Diffusion\stable-diffusion-webui\extensions\sd_smartprocess\requirements.txt
Checking Smart Crop requirements.
Launching Web UI with arguments: --deepdanbooru --xformers --api --cors-allow-origins http://localhost:5173
openOutpaint init
SD-Webui API layer loaded
Loading weights [e892703c61] from F:\Stable Diffusion\stable-diffusion-webui\models\Stable-diffusion\abyssorangemix2NSFW_abyssorangemix2Nsfw.safetensors
Creating model from config: F:\Stable Diffusion\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading VAE weights found near the checkpoint: F:\Stable Diffusion\stable-diffusion-webui\models\Stable-diffusion\abyssorangemix2NSFW_abyssorangemix2Nsfw.vae.pt
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(3): emwatz, lasterk-24500, mignon-62500
Model loaded in 11.7s (load weights from disk: 0.1s, create model: 0.9s, apply weights to model: 1.3s, apply half(): 0.6s, load VAE: 0.3s, move model to device: 0.5s, load textual inversion embeddings: 7.9s).
INFO: Started server process [33736]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://localhost:5173 (Press CTRL+C to quit)
INFO: ::1:49818 - "GET / HTTP/1.1" 200 OK
Running on local URL: http://127.0.0.1:7860
To create a public link, set `share=True` in `launch()`.
activating extra network lora with arguments [<modules.extra_networks.ExtraNetworkParams object at 0x0000027B737956C0>]: ValueError
Traceback (most recent call last):
File "F:\Stable Diffusion\stable-diffusion-webui\modules\extra_networks.py", line 75, in activate
extra_network.activate(p, extra_network_args)
File "F:\Stable Diffusion\stable-diffusion-webui\extensions-builtin\Lora\extra_networks_lora.py", line 23, in activate lora.load_loras(names, multipliers)
File "F:\Stable Diffusion\stable-diffusion-webui\extensions-builtin\Lora\lora.py", line 151, in load_loras
lora = load_lora(name, lora_on_disk.filename)
File "F:\Stable Diffusion\stable-diffusion-webui\extensions-builtin\Lora\lora.py", line 89, in load_lora
key, lora_key = fullkey.split(".", 1)
ValueError: not enough values to unpack (expected 2, got 1)
100%|██████████████████████████████████████████████████████████████████████████████████| 40/40 [00:10<00:00, 3.70it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 40/40 [00:04<00:00, 8.46it/s]
X/Y/Z plot will create 24 images on 1 3x8 grid. (Total steps to process: 960)
Loading weights [6e430eb514] from F:\Stable Diffusion\stable-diffusion-webui\models\Stable-diffusion\anything-v4.5-pruned.safetensors
Loading VAE weights found near the checkpoint: F:\Stable Diffusion\stable-diffusion-webui\models\Stable-diffusion\anything-v4.5-pruned.vae.pt
Applying xformers cross attention optimization.
Weights loaded in 2.2s (load weights from disk: 0.1s, apply weights to model: 0.7s, load VAE: 1.0s, move model to device: 0.3s).
activating extra network lora with arguments [<modules.extra_networks.ExtraNetworkParams object at 0x0000027B7377C8B0>]: ValueError
Traceback (most recent call last):
File "F:\Stable Diffusion\stable-diffusion-webui\modules\extra_networks.py", line 75, in activate
extra_network.activate(p, extra_network_args)
File "F:\Stable Diffusion\stable-diffusion-webui\extensions-builtin\Lora\extra_networks_lora.py", line 23, in activate lora.load_loras(names, multipliers)
File "F:\Stable Diffusion\stable-diffusion-webui\extensions-builtin\Lora\lora.py", line 151, in load_loras
lora = load_lora(name, lora_on_disk.filename)
File "F:\Stable Diffusion\stable-diffusion-webui\extensions-builtin\Lora\lora.py", line 89, in load_lora
key, lora_key = fullkey.split(".", 1)
ValueError: not enough values to unpack (expected 2, got 1)
100%|██████████████████████████████████████████████████████████████████████████████████| 40/40 [00:04<00:00, 9.09it/s]
activating extra network lora with arguments [<modules.extra_networks.ExtraNetworkParams object at 0x0000027B737B3730>]: ValueError
Traceback (most recent call last):
File "F:\Stable Diffusion\stable-diffusion-webui\modules\extra_networks.py", line 75, in activate
extra_network.activate(p, extra_network_args)
File "F:\Stable Diffusion\stable-diffusion-webui\extensions-builtin\Lora\extra_networks_lora.py", line 23, in activate lora.load_loras(names, multipliers)
File "F:\Stable Diffusion\stable-diffusion-webui\extensions-builtin\Lora\lora.py", line 151, in load_loras
lora = load_lora(name, lora_on_disk.filename)
File "F:\Stable Diffusion\stable-diffusion-webui\extensions-builtin\Lora\lora.py", line 89, in load_lora
key, lora_key = fullkey.split(".", 1)
ValueError: not enough values to unpack (expected 2, got 1)
100%|██████████████████████████████████████████████████████████████████████████████████| 40/40 [00:04<00:00, 9.38it/s]
activating extra network lora with arguments [<modules.extra_networks.ExtraNetworkParams object at 0x0000027B737617E0>]: ValueError
Traceback (most recent call last):
File "F:\Stable Diffusion\stable-diffusion-webui\modules\extra_networks.py", line 75, in activate
extra_network.activate(p, extra_network_args)
File "F:\Stable Diffusion\stable-diffusion-webui\extensions-builtin\Lora\extra_networks_lora.py", line 23, in activate lora.load_loras(names, multipliers)
File "F:\Stable Diffusion\stable-diffusion-webui\extensions-builtin\Lora\lora.py", line 151, in load_loras
lora = load_lora(name, lora_on_disk.filename)
File "F:\Stable Diffusion\stable-diffusion-webui\extensions-builtin\Lora\lora.py", line 89, in load_lora
key, lora_key = fullkey.split(".", 1)
ValueError: not enough values to unpack (expected 2, got 1)
Additional information
No response
same problem
i get this with controlnet when the size of the image is not common ? like with 768x1152 it works, but when i do hires fix or in img2img i do 1344x896 i get this message and don't generate any images
same, help
I'm having the same issue here when trying to use lora to load an embedding.
Seems that this problem also occurs with the Apple Silicon build
Also having this issue while working with LoRa. 2.0.0+cu118 autocast half hash: 22bcc7be xformers: 0.0.18 accelerate: 0.18.0 transformers: 4.26.1
Having the same issue on latest when using a LoRA
My problem was solved. I was not a Auto1111 problem, but a Dreambooth extension issue. LoRa's trained with the extension all gave me that problem. After using Kohya ss, all my LoRa's work pretty well.
My problem was solved. I was not a Auto1111 problem, but a Dreambooth extension issue. LoRa's trained with the extension all gave me that problem. After using Kohya ss, all my LoRa's work pretty well.
I got this error with Kohya :( (haven't even tried any other training way)
The linked PR mentions this issue means something is fundamentally wrong with the LoRA file if this happens. If this issue persists then open a new issue with a simple, reproducible example.
Not sure if anyone is as dumb as me but I was able to solve this error by realizing the LoRa I used is actually not a LoRa but a checkpoint because I was mistakenly training it through the Dreambooth mode in Kohya ss. Duh!