Skip to content

Output has NaN #9

@ZhongliangGuo

Description

@ZhongliangGuo

Hi, I tried the pipe with several images, I found that, when the image has a white background, the pipe may output a black image. There is a warning like:
"diffusers/image_processor.py:97: RuntimeWarning: invalid value encountered in cast images = (images * 255).round().astype("uint8")"

I think that maybe the pipe output a value where not a number? I attached the example image, whatever the random seed I used, it always return a black image. (including my 2 servers, 2 pc, and your hugging face demo)

ILSVRC2012_val_00001689

Could you please help me to solve this problem? I have the same environment as your requirements.txt.

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