Open HopefulCockroach opened 1 year ago
try running the colab without the first cell, if everything works, then your sd folder must be the issue, use the latest notebook : https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb
hey, i have the same Issue:
✔ Connected Create LRU cache (max_size=16) for preprocessor results. Startup time: 21.1s (import torch: 9.7s, import gradio: 2.1s, import ldm: 0.9s, other imports: 2.3s, load scripts: 1.4s, create ui: 0.7s, gradio launch: 3.9s). c0d1994c73d784a17a5b335ae8bda02dcc8dd2fc5f5dbf55169d5aab385e53f2 Loading weights [c0d1994c73] from /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/model.ckpt loading stable diffusion model: UnicodeDecodeError Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 419, in get_sd_model load_model() File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 452, 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 273, 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 254, in read_state_dict pl_sd = torch.load(checkpoint_file, map_location=map_location or shared.weight_load_location) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/safe.py", line 107, in load return load_with_extra(filename, extra_handler=global_extra_handler, *args, *kwargs) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/safe.py", line 152, in load_with_extra return unsafe_torch_load(filename, args, kwargs) File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 815, in load return _legacy_load(opened_file, map_location, pickle_module, pickle_load_args) File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 1033, in _legacy_load magic_number = pickle_module.load(f, **pickle_load_args) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfe in position 155754: invalid start byte
Stable diffusion model failed to load
the model file is very likely corrupt, try with a different model
Thanks it works well with the Model 1.5
On Mon, 22 May 2023, 14:17 Ben, @.***> wrote:
the model file is very likely corrupt, try with a different model
— Reply to this email directly, view it on GitHub https://github.com/TheLastBen/fast-stable-diffusion/issues/1565#issuecomment-1557120315, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASMLBJK2QS2TDC4MTZZCZTDXHNKPBANCNFSM6AAAAAAUVMJX4M . You are receiving this because you commented.Message ID: @.***>
Calculating sha256 for /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/model.ckpt: 4a918c65481609b8e480086aced42c574ea0a041312a13b78dda34c78575135d Loading weights [4a918c6548] from /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/model.ckpt SystemError: deallocated bytearray object has exported buffers loading stable diffusion model: MemoryError Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 111, in initialize modules.sd_models.load_model() File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 377, 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 232, 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 213, in read_state_dict pl_sd = torch.load(checkpoint_file, map_location=map_location or shared.weight_load_location) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/safe.py", line 106, in load return load_with_extra(filename, extra_handler=global_extra_handler, *args, *kwargs) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/safe.py", line 151, in load_with_extra return unsafe_torch_load(filename, args, kwargs) File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 795, in load return _legacy_load(opened_file, map_location, pickle_module, pickle_load_args) File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 1002, in _legacy_load magic_number = pickle_module.load(f, **pickle_load_args) MemoryError