LarryJane491 / Lora-Training-in-Comfy

This custom node lets you train LoRA directly in ComfyUI!
354 stars 49 forks source link

Why does the following error occur? #59

Open dcKangs opened 1 month ago

dcKangs commented 1 month ago

It's just a simple task of training LoRA. What does it mean that the key doesn't match?


load StableDiffusion checkpoint: /home/app/comfy-ui/models/checkpoints/v1-5-pruned-emaonly.safetensors UNet2DConditionModel: 64, 8, 768, False, False loading u-net: loading vae: Traceback (most recent call last): File “/home/user/app/comfy-ui/custom_nodes/Lora-Training-in-Comfy/sd-scripts/library/model_util.py", line 1072, in load_models_from_stable_diffusion_checkpoint info = text_model.load_state_dict(converted_text_encoder_checkpoint) File "/home/user/.pyenv/versions/3.10.6/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2189, in load_state_dict raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format( RuntimeError: Error(s) in loading state_dict for CLIPTextModel: Unexpected key(s) in state_dict: "text_model.embeddings.position_ids". ....

Shanghai-Bill commented 1 month ago

@dcKangs use v1.5-pruned.ckpt