lora-scripts icon indicating copy to clipboard operation
lora-scripts copied to clipboard

v1.5.1 shape mismatch

Open fanchunmeng-98 opened this issue 10 months ago • 1 comments

lora-scripts-v1.5.1 解压后直接训练 checkpoints https://civitai.com/models/112902/dreamshaper-xl 不知道是不是版本兼容问题,报错一长串mismatch

size mismatch for mid_block.attentions.0.proj_out.weight: copying a param with shape torch.Size([1280, 1280]) from checkpoint, the shape in current model is torch.Size([1280, 1280, 1, 1])

RuntimeError: Error(s) in loading state_dict for CLIPTextModel: Missing key(s) in state_dict: "text_model.embeddings.position_ids".

CalledProcessError: Command '['C:\StableDiffusionWorksapce\lora-scripts-v1.5.1\python\python.exe', './sd-scripts/sdxl_train_network.py', '--config_file', 'C:\StableDiffusionWorksapce\lora-scripts-v1.5.1\toml\autosave\20240417-230015.toml']' returned non-zero exit status 1.

fanchunmeng-98 avatar Apr 17 '24 15:04 fanchunmeng-98

更新到1.8.6后好了,我发现更新脚本里有个warning,只装了部分获取到的依赖

fanchunmeng-98 avatar Apr 17 '24 15:04 fanchunmeng-98