Skip to content

fix: round latent dimensions up to 8#1

Merged
Zhen-Bo merged 7 commits into
masterfrom
fix/align-latent-dimensions
Jun 24, 2026
Merged

fix: round latent dimensions up to 8#1
Zhen-Bo merged 7 commits into
masterfrom
fix/align-latent-dimensions

Conversation

@Zhen-Bo

@Zhen-Bo Zhen-Bo commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Summary

Round QuickLatent sampler dimensions up to 8-pixel boundaries and document the expected vs actual target sizes for v1.1.0.

Changes

  • Change backend and frontend dimension alignment to 8 px with ceil rounding.
  • Derive Target Size from aligned output dimensions multiplied by scale.
  • Prevent scaled target sizes from undershooting the selected preset target.
  • Add regression tests for 8-pixel ceil alignment and target sizing.
  • Add readable dimension lookup tables with expected target, actual target, difference, and rounding details.
  • Add ComfyUI API E2E size verification data.
  • Bump package version to 1.1.0.

Verification

  • pytest -q -> 399 passed
  • npm test -> 17 passed
  • ComfyUI API E2E size matrix -> 330 cases, 0 failures, 238 rounded-up cases

Impact

Breaking changes: None
User-facing changes: QuickLatent output dimensions now use 8-pixel ceil alignment, and the Target Size display reflects aligned output multiplied by scale.
Migration required: None

Zhen-Bo added 7 commits June 25, 2026 00:33
Use 16-pixel dimension alignment in both backend and frontend calculations, and derive target size from aligned output dimensions.
Update expected dimensions for 16-pixel alignment and add frontend regression tests for aligned target derivation and half-even rounding parity.
Document output, expected target, actual target, and rounding differences for all QuickLatent size combinations. Include API E2E size verification outputs.
Use 8-pixel ceil alignment for backend and frontend dimension calculations so scaled targets do not undershoot the selected preset target.
Update dimension expectations for 8-pixel ceil alignment and verify frontend target previews do not undershoot preset targets.
Regenerate the readable size tables and ComfyUI API E2E verification data for 8-pixel ceil alignment.
@Zhen-Bo Zhen-Bo changed the title fix: align latent dimensions to 16 fix: round latent dimensions up to 8 Jun 24, 2026
@Zhen-Bo
Zhen-Bo merged commit 318cd14 into master Jun 24, 2026
1 check passed
@Zhen-Bo
Zhen-Bo deleted the fix/align-latent-dimensions branch June 24, 2026 17:07
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