Skip to content

Kolors piplines produce black images on ROCm #10715

@Teriks

Description

@Teriks

Describe the bug

Generating images with Kolors pipelines produces black images on the torch ROCm backend.

fp16 VAE fix model does not appear to solve the issue.

The normal SDXL pipeline works fine, the code for VAE decoding is basically identical there, so I am not sure if it is related to the VAE.

I would like to possibly contribute some community pipelines related to Kolors, mainly ControlNet and Inpainting variants and just discovered while testing.

This issue also affects the pipelines I have built here: https://github.com/Teriks/dgenerate/tree/version_5.0.0/dgenerate/extras/kolors/pipelines

Any idea where to start looking? Could be related to the text encoder?

Reproduction

import diffusers
import torch

pipe = diffusers.KolorsPipeline.from_pretrained(
    'Kwai-Kolors/Kolors-diffusers', variant='fp16', torch_dtype=torch.float16)


pipe.to('cuda')


result = pipe(prompt='hello world')

result.images[0].save('test.png')

Logs

System Info

diffusers 0.32.2
transformers 4.48.1
torch 2.5.1

Who can help?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleIssues that haven't received updates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions