sd-webui-lcm: unable to install LCM

The config attributes {‘force_upcast’: True} were passed to AutoencoderKL, but are not expected and will be ignored. Please verify your config.json configuration file. *** Error loading script: main.py Traceback (most recent call last): File “E:\stable diffusion\stable-diffusion-webui\modules\scripts.py”, line 382, in load_scripts script_module = script_loading.load_module(scriptfile.path) File “E:\stable diffusion\stable-diffusion-webui\modules\script_loading.py”, line 10, in load_module module_spec.loader.exec_module(module) File “<frozen importlib._bootstrap_external>”, line 883, in exec_module File “<frozen importlib._bootstrap>”, line 241, in _call_with_frames_removed File “E:\stable diffusion\stable-diffusion-webui\extensions\sd-webui-lcm\scripts\main.py”, line 71, in <module> pipe = LatentConsistencyModelPipeline.from_pretrained( File “E:\stable diffusion\stable-diffusion-webui\venv\lib\site-packages\diffusers\pipelines\pipeline_utils.py”, line 1039, in from_pretrained loaded_sub_model = load_sub_model( File “E:\stable diffusion\stable-diffusion-webui\venv\lib\site-packages\diffusers\pipelines\pipeline_utils.py”, line 445, in load_sub_model loaded_sub_model = load_method(os.path.join(cached_folder, name), **loading_kwargs) File “E:\stable diffusion\stable-diffusion-webui\venv\lib\site-packages\diffusers\models\modeling_utils.py”, line 583, in from_pretrained raise ValueError( ValueError: Cannot load <class ‘diffusers.models.autoencoder_kl.AutoencoderKL’> from C:\Users\Tr0uble.cache\huggingface\hub\models–SimianLuo–LCM_Dreamshaper_v7\snapshots\c7f9b672c65a664af57d1de926819fd79cb26eb8\vae because the following keys are missing: decoder.mid_block.attentions.0.value.weight, decoder.mid_block.attentions.0.query.bias, decoder.mid_block.attentions.0.value.bias, decoder.mid_block.attentions.0.query.weight, decoder.mid_block.attentions.0.key.bias, encoder.mid_block.attentions.0.query.bias, encoder.mid_block.attentions.0.value.weight, encoder.mid_block.attentions.0.value.bias, decoder.mid_block.attentions.0.proj_attn.bias, encoder.mid_block.attentions.0.key.bias, encoder.mid_block.attentions.0.key.weight, encoder.mid_block.attentions.0.proj_attn.weight, encoder.mid_block.attentions.0.proj_attn.bias, encoder.mid_block.attentions.0.query.weight, decoder.mid_block.attentions.0.proj_attn.weight, decoder.mid_block.attentions.0.key.weight. Please make sure to pass low_cpu_mem_usage=False and device_map=None if you want to randomly initialize those weights or else make sure your checkpoint file is correct.

About this issue

  • Original URL
  • State: open
  • Created 8 months ago
  • Comments: 18 (3 by maintainers)

Most upvoted comments

let us download model on our own just update docs where to keep it, autodownloading from hface is crap

Diffusers update should go in requirements.txt for the extension, right? Otherwise this will never work.

@boomboom77365 @0xbitches Had the same problem, diffusers version was 0.16.1, upgrading it to latest 0.21.4 did the trick indeed. Thanks 😃