AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: After updating I got this error KeyError: 'Stable Diffusion XL #11999

Open zeroprotec opened 1 year ago

zeroprotec commented 1 year ago

Is there an existing issue for this?

What happened?

After updating I got this error KeyError: 'Stable Diffusion XL today I updated to the new version 1.5.0, i don't understand why it happens.

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

What should have happened?

run stable diffusion correctly

Version or Commit where the problem happens

1.5.0

What Python version are you running on ?

Python 3.10.x

What platforms do you use to access the UI ?

No response

What device are you running WebUI on?

No response

Cross attention optimization

xformers

What browsers do you use to access the UI ?

No response

Command Line Arguments

--enable-insecure-extension-access --opt-sdp-attention --share --no-half-vae --disable-safe-unpickle --theme dark --no-hashing

List of extensions

no

Console logs

│                                                                              │
│     6                                                                        │
│     7 sd_configs_path = shared.sd_configs_path                               │
│     8 sd_repo_configs_path = os.path.join(paths.paths['Stable Diffusion'], " │
│ ❱   9 sd_xl_repo_configs_path = os.path.join(paths.paths['Stable Diffusion X │
│    10                                                                        │
│    11                                                                        │
│    12 config_default = shared.sd_default_config

Additional information

No response

ChenCheng2Cs commented 1 year ago

You will need to do git clone https://github.com/Stability-AI/generative-models.git under repo folder

Oscorped commented 1 year ago

Tried on google colab Created folder repositories and uploaded this data, but its not working

eskaviam commented 1 year ago

Tried on google colab Created folder repositories and uploaded this data, but its not working

You shouldn't have to create the repositories folder because it's already there.

If you are on colab try this, replace YOUR_UI_FOLDER_NAME git clone https://github.com/Stability-AI/generative-models.git /content/YOUR_UI_FOLDER_NAME/repositories/generative-models

lastYoueven commented 1 year ago

why not push this issues repositories to .sh/.bat?

thedino12 commented 1 year ago

Hello! I encountered the same issue. I followed eskaviam's instructions and inputted


``` !git clone https://github.com/Stability-AI/generative-models.git /content/gdrive/MyDrive/sd/stable-diffusion-webui/repositories/generative-models

However, the error message still appeared.

rickyars commented 1 year ago

thank you! this fixed my issue. wondering if you can explain what happened? why the error after updating.

zeroprotec commented 1 year ago

¿Hay un problema existente para esto?

  • [x] Busqué los problemas existentes y verifiqué las compilaciones / confirmaciones recientes

¿Que Paso?

Después de actualizar me salió este error KeyError: 'Stable Diffusion XL hoy actualicé a la nueva versión 1.5.0, no entiendo por qué sucede.

Pasos para reproducir el problema

  1. Ir un ....
  2. prensa....
  3. ...

¿Qué debería haber pasado?

ejecutar la difusión estable correctamente

Versión o Compromiso donde ocurre el problema

1.5.0

¿En qué versión de Python estás acabada?

Pitón 3.10.x

¿Qué plataformas utiliza para acceder a la interfaz de usuario?

Ninguna respuesta

¿En qué dispositivo está activado WebUI?

Ninguna respuesta

Optimizacion de la atencion cruzada

xformers

¿Qué navegadores utiliza para acceder a la interfaz de usuario?

Ninguna respuesta

Argumentos de la linea de comandos

--enable-insecure-extension-access --opt-sdp-attention --share --no-half-vae --disable-safe-unpickle --theme dark --no-hashing

Lista de extensiones

No

Registros de la consola

│                                                                              │
│     6                                                                        │
│     7 sd_configs_path = shared.sd_configs_path                               │
│     8 sd_repo_configs_path = os.path.join(paths.paths['Stable Diffusion'], " │
│ ❱   9 sd_xl_repo_configs_path = os.path.join(paths.paths['Stable Diffusion X │
│    10                                                                        │
│    11                                                                        │
│    12 config_default = shared.sd_default_config

información adicional

Ninguna respuesta

the error was due to the fact that I had already downloaded the repository folder and when I tried to update automatic it generated that error because it included in the line arguments --skip-install, just let the new repositories be installed again and it will be solved.

twinsant commented 1 year ago

What I did:

#@markdown # Clone sgm
pwd = '/content/gdrive/MyDrive/sd/stable-diffusion-webui/'
%cd '{pwd}'
!git clone https://github.com/Stability-AI/generative-models.git /content/gdrive/MyDrive/sd/stable-diffusion-webui/repositories/generative-models
!ln -s /content/gdrive/MyDrive/sd/stable-diffusion-webui/repositories/generative-models/sgm ./sgm

and comment sdxl code ....

image

Worked.