Skip to content

Conversation

@ifilipis
Copy link

@ifilipis ifilipis commented Dec 4, 2025

Solved the scaling issue

  • Native ComfyUI implementation limits the embedding scale to 1024x1024, resulting in distorted geometry on large resolutions.
  • Z-image grid patches are now dynamically rescaled from base_res/output resolution ratio -> 1.0, creating a consistent image

Best verified by prompts with fixed geometric shapes (e.g. a grid), or high detail images, e.g. "New York birdseye view"

@lookuters22
Copy link

this fixes proportios but the image quality is bad. tested with all settings
Screenshot_38

@ifilipis
Copy link
Author

ifilipis commented Dec 5, 2025

this fixes proportios but the image quality is bad. tested with all settings

Try lower/higher dype_exponent - this is the only effective setting. I think, for portraits you want it lower than 2. Euler_ancestral also worked a bit better than res_multistep.

But yeah, this algorithm is not ideal for Z-image

* Limit Z-image patchify override to first step

* Gate DyPE patchify by step count

* Adjust DyPE z-image gating
@ifilipis
Copy link
Author

ifilipis commented Dec 5, 2025

This latest commit breaks vision_yarn, but improves on default yarn and ntk

Never mind, vision_yarn just works with res_multistep, and yarn and ntk work with euler

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.

2 participants