Skip to content

VAE tiling may cause image interference between generations #1603

@wbruna

Description

@wbruna

With the default VAE tiling, some image generations can seemingly be corrupted by previously generated images.

A test with plain text2img, model cyberrealisticPony_semiRealV30, DMD LoRA at 1.0, LCM 8 steps, CFG 1, Seed 1, 1024x640, VAE tiling on, in sequence (no batch, just clicking Generate repeatedly):

  • prompt: "car", 5 generations:

Image

  • prompt: "forest", 1 generation:

Image

  • prompt "forest", 2 generations:

Image

  • prompt "forest", 1 generation:

Image

These were generated on rocm build a7706be , but I see the same behavior with Vulkan on the 1.93.2 build.

I can't reproduce it when disabling VAE tiling, so this could be related to leejet/stable-diffusion.cpp#588 (but I get a warning "Requested buffer size (4362076160) exceeds device memory allocation limit (4294967292)!" when disabling VAE tiling, so I don't know if I can really trust this test).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions