Replies: 2 comments
|
After some digging, I am almost sure that the tiling issue comes from the blending code, which behaves differently on the "torch_directml" device. So far, any code related to Gaussian blur and blending does not work correctly on DirectML devices. If I use the CPU device, there are no issues at all; everything works perfectly fine. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Problem
When I use pipeline.enable_vae_tiling(), I get strange tiled artifacts.
Observed Behavior:
The tiles' size appears to be calculated as sample_size = 128 - margins, leading to visible seams in the output image.
Some tiles are sharp, while others are blurry, resulting in an inconsistent look across the generated image.
Without sample_size:
If I don’t explicitly set sample_size, the image splits into two 512x512 parts.
One part is fine, but the other is darker and blurry. This same blurring effect is also present in the tiled output.
Expected Behavior
Tiles should blend seamlessly, producing a consistent and artifact-free image.
Original input image.

Setup: SD 1.5, txt2img or img2img pipeline, with output type "pil".
My code is almost default from documentation examples:
How to fix this issue?
All reactions