ReNoise-Inversion icon indicating copy to clipboard operation
ReNoise-Inversion copied to clipboard

Output has NaN

Open ZhongliangGuo opened this issue 7 months ago • 1 comments

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.

ZhongliangGuo avatar Jul 17 '24 15:07 ZhongliangGuo