TheLastBen / fast-stable-diffusion

fast-stable-diffusion + DreamBooth
MIT License
7.48k stars 1.3k forks source link

AttributeError: 'NoneType' object has no attribute 'cond_stage_model' Stable diffusion fails to start Google Colab latest #2174

Open mastachef opened 1 year ago

mastachef commented 1 year ago

Tried running latest commit and non latest, gradio and ngrok, nothing fixes the issue.

ControlNet v1.1.173 ControlNet v1.1.173 Loading weights [2b21c51306] from /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/clarity.safetensors Creating model from config: /content/gdrive/MyDrive/sd/stable-diffusion-webui/configs/v1-inference.yaml LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Loading VAE weights specified in settings: /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/VAE/vae-ft-mse-840000-ema-pruned.safetensors Applying scaled dot product cross attention optimization. loading stable diffusion model: AttributeError Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 195, in initialize modules.sd_models.load_model() File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 497, in load_model sd_hijack.model_hijack.embedding_db.load_textual_inversion_embeddings(force_reload=True) # Reload embeddings after model load as they may or may not fit the model File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/textual_inversion/textual_inversion.py", line 230, in load_textual_inversion_embeddings self.expected_shape = self.get_expected_shape() File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/textual_inversion/textual_inversion.py", line 137, in get_expected_shape vec = shared.sd_model.cond_stage_model.encode_embedding_init_text(",", 1) AttributeError: 'NoneType' object has no attribute 'cond_stage_model'

Stable diffusion model failed to load, exiting

thefixinhixon commented 1 year ago

Make sure you're using the latest notebook from /Latest_Notebooks/ folder.