Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Could not load the stable-diffusion model! Reason: 'time_embed.0.weight' #1754

Open
SusgUY446 opened this issue Apr 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@SusgUY446
Copy link

Describe the bug
when creating a image it gives this error "Error: Could not load the stable-diffusion model! Reason: 'time_embed.0.weight'"

To Reproduce
generate a image

Expected behavior
that it start generating the image requested

Screenshots
image

Desktop (please complete the following information):

  • OS: windows 11
  • Browser: firefox
  • Version: 124

Additional context
Log from console window:
20:20:29.049 INFO cpu Session 1712168406272 starting task 2133794581232 on Intel64 Family 6 Model 154 Stepping 4, GenuineIntel task_manager.py:280
20:20:29.183 INFO cpu loading stable-diffusion model from C:\EasyDiffusion\models\stable-diffusion\custommodel10391.safetensors to device: cpu init.py:52
20:20:31.091 INFO cpu loading on diffusers init.py:174
20:20:31.095 INFO cpu using config: C:\EasyDiffusion\installer_files\env\lib\site-packages\sdkit\models\models_db\configs\v1-inference.yaml init.py:176
20:20:31.131 INFO cpu using attn_precision: fp32 init.py:192
20:20:31.268 ERROR cpu 'time_embed.0.weight' model_manager.py:185
Traceback (most recent call last):
File "C:\EasyDiffusion\ui\easydiffusion\model_manager.py", line 181, in reload_models_if_necessary
action_fn(context, model_type, scan_model=False, **extra_params) # we've scanned them already
File "C:\EasyDiffusion\installer_files\env\lib\site-packages\sdkit\models\model_loader_init_.py", line 54, in load_model
context.models = get_loader_module(model_type).load_model(context, **kwargs)
File "C:\EasyDiffusion\installer_files\env\lib\site-packages\sdkit\models\model_loader\stable_diffusion_init_.py", line 86, in load_model
return load_diffusers_model(
File "C:\EasyDiffusion\installer_files\env\lib\site-packages\sdkit\models\model_loader\stable_diffusion_init_.py", line 238, in load_diffusers_model
default_pipe = download_from_original_stable_diffusion_ckpt(state_dict, **model_load_params)
File "C:\EasyDiffusion\installer_files\env\lib\site-packages\sdkit\models\model_loader\diffusers_bugfixes.py", line 396, in download_from_original_stable_diffusion_ckpt
converted_unet_checkpoint = convert_ldm_unet_checkpoint(checkpoint, unet_config, path=path, extract_ema=extract_ema)
File "C:\EasyDiffusion\installer_files\env\lib\site-packages\diffusers\pipelines\stable_diffusion\convert_from_ckpt.py", line 422, in convert_ldm_unet_checkpoint
new_checkpoint["time_embedding.linear_1.weight"] = unet_state_dict["time_embed.0.weight"]
KeyError: 'time_embed.0.weight'
20:20:31.295 ERROR cpu Traceback (most recent call last): task_manager.py:292
File "C:\EasyDiffusion\ui\easydiffusion\task_manager.py", line 284, in thread_render
task.run()
File "C:\EasyDiffusion\ui\easydiffusion\tasks\render_images.py", line 89, in run
model_manager.fail_if_models_did_not_load(context)
File "C:\EasyDiffusion\ui\easydiffusion\model_manager.py", line 212, in fail_if_models_did_not_load
raise Exception(f"Could not load the {model_type} model! Reason: " + e)
Exception: Could not load the stable-diffusion model! Reason: 'time_embed.0.weight'

20:20:31.462 INFO cpu Session 1712168406272 task 2133794581232 failed!

@SusgUY446 SusgUY446 added the bug Something isn't working label Apr 3, 2024
@0000F8
Copy link

0000F8 commented Apr 17, 2024

Having this issue as well,

Mac, easydiffusion 3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants