kohya-ss / kohya-ss/sd-scripts

stack expects each tensor to be equal size

Open
#522 12 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

stack expects each tensor to be equal size, but got [4, 72, 120] at entry 0 and [4, 80, 112] at entry 2

I keep on getting this regardless how I set up batch size, gradient accumulation etc.

It goes aways when I have very few images, but at my current 5K + images, it has been a few days and frustrating.

Please help.

I am using more recent commit.

Contributor guide

No contributing guide indexed for this repository

Research direction

The report names no source file, test, or entry point; begin by reproducing the training run with the reported tensor shapes and inspect where image tensors are batched. Done means identifying the cause of the unequal dimensions or documenting a confirmed fix with a repeatable case using the larger image set.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.