Skip to content

krea2: fix timestep-shift training#947

Open
tcldr wants to merge 1 commit into
ostris:mainfrom
tcldr:krea2-patch-size-fix
Open

krea2: fix timestep-shift training#947
tcldr wants to merge 1 commit into
ostris:mainfrom
tcldr:krea2-patch-size-fix

Conversation

@tcldr

@tcldr tcldr commented Jul 14, 2026

Copy link
Copy Markdown

Description

With timestep_type: shift, krea2 trains on a far more high-noise-biased timestep distribution than intended because BaseSDTrainProcess is expecting to find the token patch size via patch_size rather than the patch config key used by the Krea 2 types – so the lookup falls back to the incorrect patch_size = 1

Fix

Probably a few ways to do this, but figured renaming the config type from patch to patch_size – so that BaseSDTrainProcess can find the expected property – and updating all internal consumers would be cleanest.

@tcldr
tcldr force-pushed the krea2-patch-size-fix branch from 976c1d8 to 04b6add Compare July 14, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant