kohya-ss / kohya-ss/sd-scripts

SDXL1.0 lora training error

Open
#713 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7.2k
Forks
1.2k
Avg merge
11m
Merged PRs (30d)
2

Description

File "/home/bowen/zhang3/LDM/lora-scripts/sd-scripts/library/sdxl_original_unet.py", line 1080, in forward
h = torch.cat([h, hs.pop()], dim=1)
RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 58 but got size 57 for tensor number 1 in the list.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting library/sdxl_original_unet.py at line 1080 and the SDXL1.0 LoRA training path that produces the traceback. Reproduce the reported failure and trace the tensor shapes; done means the training run no longer raises the concatenation size mismatch.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.