You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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!
The text was updated successfully, but these errors were encountered:
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
Desktop (please complete the following information):
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!
The text was updated successfully, but these errors were encountered: