easydiffusion / easydiffusion

Easiest 1-click way to create beautiful artwork on your PC using AI, with no tech knowledge. Provides a browser UI for generating images from text prompts and images. Just enter your text prompt, and see the generated image.
https://easydiffusion.github.io/
Other
9.49k stars 781 forks source link

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

Closed SusgUY446 closed 1 month ago

SusgUY446 commented 6 months ago

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):

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!

0000F8 commented 5 months ago

Having this issue as well,

Mac, easydiffusion 3.0

HojatGhanad commented 3 months ago

I just faced this issue too. windows 10, easy diffusion 3.0, chrome

D-Bobrikov commented 3 months ago

OS: Ubuntu 24.04 LTS x86_64 Kernel: 6.8.0-35-generic CPU: AMD Ryzen 5 4600H with Radeon G GPU: NVIDIA GeForce GTX 1650 Ti Mobi GPU: AMD ATI Radeon RX Vega 6 Memory: 15353MiB

Same problem (

Albee24 commented 3 months ago

Same here, M3 Max, easy diffusion 3.0 (trying to use stable diffusion 3 medium)

Grosso2020 commented 3 months ago

win 10 Same problem

FriedrichR commented 3 months ago

Win 10, Easy Diffusion v3.0.9, sd3_medium

Works with sd_v1_5

Nickup22 commented 2 months ago

win10 same problem. sd v1.5 works normally ram 32gb rtx3060 12gb

laurentopia commented 1 month ago

same with Flux and MJ52 https://civitai.com/models/618692/flux upscale also doesn't work after using these models and reverting to 1.5

sang-shelton commented 1 month ago

same with Flux and MJ52 https://civitai.com/models/618692/flux upscale also doesn't work after using these models and reverting to 1.5

Same issue here with Flux. I have an NVIDIA GeForce RTX 3060 - 12GB VRAM - Manjaro Linux.

Screenshot_20240823_212942

BSchoolland commented 1 month ago

I have the same issue on Linux. Works fine with sd-v1-5 but fails with sd3_medium. 16 gb ram and NVIDIA GeForce GTX 1060 Mobile 6GB graphics card. If anyone has a workaround for this it would be much appreciated! image

laurentopia commented 2 weeks ago

I switched to SwarmUI and now life is good, in Flux