fast-stable-diffusion icon indicating copy to clipboard operation
fast-stable-diffusion copied to clipboard

Fast-Stable-Diffusion Not Running

Open Azura-13 opened this issue 1 year ago • 6 comments

Hey Get to the Start Stable cell and then the process just ends,

Restart session and i get this:

Traceback (most recent call last): File "/usr/local/lib/python3.11/dist-packages/transformers/utils/import_utils.py", line 1146, in _get_module return importlib.import_module("." + module_name, self.name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/usr/local/lib/python3.11/dist-packages/transformers/modeling_utils.py", line 83, in from accelerate import version as accelerate_version File "/usr/local/lib/python3.11/dist-packages/accelerate/init.py", line 16, in from .accelerator import Accelerator File "/usr/local/lib/python3.11/dist-packages/accelerate/accelerator.py", line 34, in from huggingface_hub import split_torch_state_dict_into_shards ImportError: cannot import name 'split_torch_state_dict_into_shards' from 'huggingface_hub' (/usr/local/lib/python3.11/dist-packages/huggingface_hub/init.py)

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

Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 13, in initialize.imports() File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/initialize.py", line 17, in imports import pytorch_lightning # noqa: F401 ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/pytorch_lightning/init.py", line 34, in from pytorch_lightning.callbacks import Callback # noqa: E402 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/pytorch_lightning/callbacks/init.py", line 14, in from pytorch_lightning.callbacks.callback import Callback File "/usr/local/lib/python3.11/dist-packages/pytorch_lightning/callbacks/callback.py", line 25, in from pytorch_lightning.utilities.types import STEP_OUTPUT File "/usr/local/lib/python3.11/dist-packages/pytorch_lightning/utilities/types.py", line 28, in from torchmetrics import Metric File "/usr/local/lib/python3.11/dist-packages/torchmetrics/init.py", line 14, in from torchmetrics import functional # noqa: E402 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/torchmetrics/functional/init.py", line 77, in from torchmetrics.functional.text.bleu import bleu_score File "/usr/local/lib/python3.11/dist-packages/torchmetrics/functional/text/init.py", line 30, in from torchmetrics.functional.text.bert import bert_score # noqa: F401 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/torchmetrics/functional/text/bert.py", line 24, in from torchmetrics.functional.text.helper_embedding_metric import ( File "/usr/local/lib/python3.11/dist-packages/torchmetrics/functional/text/helper_embedding_metric.py", line 26, in from transformers import AutoModelForMaskedLM, AutoTokenizer, PreTrainedModel, PreTrainedTokenizerBase File "", line 1229, in _handle_fromlist File "/usr/local/lib/python3.11/dist-packages/transformers/utils/import_utils.py", line 1136, in getattr module = self._get_module(self._class_to_module[name]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/transformers/utils/import_utils.py", line 1148, in _get_module raise RuntimeError( RuntimeError: Failed to import transformers.modeling_utils because of the following error (look up to see its traceback): cannot import name 'split_torch_state_dict_into_shards' from 'huggingface_hub' (/usr/local/lib/python3.11/dist-packages/huggingface_hub/init.py)

Azura-13 avatar Jan 22 '25 13:01 Azura-13

Deleted SD from my google drive and reinstalled, lets me open SD but when you hit restart and run all it crashes again

same fatal error code

Anyone else have this problem?

Fast-Stable-Diffusion never runs right straight off the bat, have to reload it often but now it crashes when i do this

Please help =(

Azura-13 avatar Jan 22 '25 15:01 Azura-13

I'm not sure why it's crashing on you. I just used it a couple of hours ago, and it worked fine. Are you using the latest notebook?

Brandyfan avatar Jan 22 '25 19:01 Brandyfan

Yeah, even took everything out of SD (lora, models, etc) and deleted the folder and re-installed, With nothing added back to it, it will load gradio but then when i restart and run all it crashes

Azura-13 avatar Jan 22 '25 21:01 Azura-13

Same issue, freed up plenty of space in my drive and seems to occasionally work after i delete sd folder and restart session however very inconsistently. Also, on the occasion stable diffusion does load, loras do not load into gradio even though the notebook marks them as downloaded.

bugzondrugz avatar Jan 30 '25 02:01 bugzondrugz

Yeah, even took everything out of SD (lora, models, etc) and deleted the folder and re-installed, With nothing added back to it, it will load gradio but then when i restart and run all it crashes

That's strange. With me, I do the following-

  1. connect Google Drive
  2. Install/Update AUTOMATIC1111 repo
  3. Requirements
  4. Model Download/Load (I use a custom model)
  5. Start Stable-Diffusion I get the following error now, but ignore- "WARNING: All log messages before absl::InitializeLog() is called are written to STDERR E0000 00:00:1738351051.208928 3947 cuda_dnn.cc:8310] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered E0000 00:00:1738351051.223873 3947 cuda_blas.cc:1418] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered"

Stable Diffusion starts usually after 5 minutes.

  1. I use img2img and generate pictures.

Maybe restarting it is causing the problem? I haven't tried that yet with mine.

Brandyfan avatar Jan 31 '25 19:01 Brandyfan

are you using the latest notebook ?

TheLastBen avatar Feb 01 '25 19:02 TheLastBen