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

base model fails to load

Open dave27652 opened this issue 3 months ago • 2 comments

using the newest copy of the A111 notebook the base model for V2.1 768 fails to load. the hugging face page for the V2.1 models appears to no longer exist. pasted below is the output that hangs on startup time.

EDIT ADDED: using google colab if that matters.

Downloading: "https://github.com/DagnyT/hardnet/raw/master/pretrained/train_liberty_with_aug/checkpoint_liberty_with_aug.pth" to /content/gdrive/MyDrive/sd/stable-diffusion-webui/cache/hub/checkpoints/checkpoint_liberty_with_aug.pth 100% 5.10M/5.10M [00:00<00:00, 236MB/s] reading metadata for /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/v2-1_768-ema-pruned.safetensors: AssertionError Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 83, in init self.metadata = cache.cached_data_for_file('safetensors-metadata', "checkpoint/" + name, filename, read_metadata) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/cache.py", line 114, in cached_data_for_file value = func() ^^^^^^ File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 75, in read_metadata metadata = read_metadata_from_safetensors(filename) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 292, in read_metadata_from_safetensors assert metadata_len > 2 and json_start in (b'{"', b"{'"), f"{filename} is not a safetensors file" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/v2-1_768-ema-pruned.safetensors is not a safetensors file

reading metadata for /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/v2-1_768-ema-pruned.safetensors: AssertionError Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 83, in init self.metadata = cache.cached_data_for_file('safetensors-metadata', "checkpoint/" + name, filename, read_metadata) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/cache.py", line 114, in cached_data_for_file value = func() ^^^^^^ File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 75, in read_metadata metadata = read_metadata_from_safetensors(filename) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 292, in read_metadata_from_safetensors assert metadata_len > 2 and json_start in (b'{"', b"{'"), f"{filename} is not a safetensors file" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/v2-1_768-ema-pruned.safetensors is not a safetensors file

Calculating sha256 for /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/v2-1_768-ema-pruned.safetensors: 45b71fe98efe5f530b825dce6f5049d738e9c16869f10be4370ab81a9912d4a6 Loading weights [45b71fe98e] from /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/v2-1_768-ema-pruned.safetensors loading stable diffusion model: SafetensorError Traceback (most recent call last): File "/usr/lib/python3.12/threading.py", line 1032, in _bootstrap self._bootstrap_inner() File "/usr/lib/python3.12/threading.py", line 1075, in _bootstrap_inner self.run() File "/usr/lib/python3.12/threading.py", line 1012, in run self._target(*self._args, **self._kwargs) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/initialize.py", line 149, in load_model shared.sd_model # noqa: B018 File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/shared_items.py", line 175, in sd_model return modules.sd_models.model_data.get_sd_model() File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 693, in get_sd_model load_model() File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 802, in load_model state_dict = get_checkpoint_state_dict(checkpoint_info, timer) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 344, in get_checkpoint_state_dict res = read_state_dict(checkpoint_info.filename) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 318, in read_state_dict pl_sd = safetensors.torch.load_file(checkpoint_file, device=device) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/safetensors/torch.py", line 259, in load_file with safe_open(filename, framework="pt", device=device) as f: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ safetensors_rust.SafetensorError: Error while deserializing header: header too large

Stable diffusion model failed to load Applying attention optimization: xformers... done. Running on public URL: https://347c91dfcf39cb12a2.gradio.live/ ✔ Connected Startup time: 29.6s (launcher: 0.2s, import torch: 13.2s, import gradio: 4.5s, setup paths: 5.1s, initialize shared: 0.3s, other imports: 2.0s, list SD models: 0.2s, load scripts: 1.4s, initialize extra networks: 0.1s, create ui: 0.6s, gradio launch: 1.7s, add APIs: 0.2s).

dave27652 avatar Nov 14 '25 13:11 dave27652

try this link for model : https://huggingface.co/RedbeardNZ

paste model @ model download

BlenderProxy avatar Nov 15 '25 07:11 BlenderProxy

im trying to train on 2.1 768 pixel model. didnt see that in redbeards model list. but that not the only thing thats broken. the repository for the json scheduler has removed too.

dave27652 avatar Nov 15 '25 09:11 dave27652