stable-diffusion-webui-forge icon indicating copy to clipboard operation
stable-diffusion-webui-forge copied to clipboard

[ERROR] RuntimeWarning: invalid value encountered in cast

Open Iory1998 opened this issue 1 year ago • 11 comments

Hi,

I am on the latest Commit hash: 9bc2d04ca942d7d71d1f4c4c2e94945ecdf0e4a5, and I am using Flux.1devQ4.gguf and I am encoutring this error frequently where the image stops midgeneration then continues. The issue is that the image comes out black. I am on Windows 11, Cuda installed 12.2, Torch version 2.1.2+cu121, RTX3090 Below is the screenshot of the issue: image

Iory1998 avatar Aug 19 '24 23:08 Iory1998

Can you provide screenshot of the UI.

Yashpal2004 avatar Aug 20 '24 00:08 Yashpal2004

Can you provide screenshot of the UI.

Here is the requested screenshot. I tried other models Like the Q8 GGUF and I ran into the same issue: image

Iory1998 avatar Aug 20 '24 01:08 Iory1998

https://github.com/lllyasviel/stable-diffusion-webui-forge/discussions/1050#discussioncomment-10341956

Yashpal2004 avatar Aug 20 '24 02:08 Yashpal2004

#1050 (comment)

Hi, if you mean the post with the VAE, well, it's the same ae.safetensors from the X-Labs, I just renamed it for convenience. I mean, I've been working with it for days now both in ForgeUI and ComfyUI, so surely that can't be the problem. In addition, when I use the fp16, I don't have this issue. It's just when I use the GGUF.

Iory1998 avatar Aug 20 '24 02:08 Iory1998

#1050 (comment)

Hi, if you mean the post with the VAE, well, it's the same ae.safetensors from the X-Labs, I just renamed it for convenience. I mean, I've been working with it for days now both in ForgeUI and ComfyUI, so surely that can't be the problem. In addition, when I use the fp16, I don't have this issue. It's just when I use the GGUF.

Do you see Image being generated in Live Preview? Or it's also black.

Yashpal2004 avatar Aug 20 '24 02:08 Yashpal2004

I am facing exactly the same issue , in my case, live preview also gives black image

sunnyyangyangyang avatar Aug 20 '24 03:08 sunnyyangyangyang

#1050 (comment)

Hi, if you mean the post with the VAE, well, it's the same ae.safetensors from the X-Labs, I just renamed it for convenience. I mean, I've been working with it for days now both in ForgeUI and ComfyUI, so surely that can't be the problem. In addition, when I use the fp16, I don't have this issue. It's just when I use the GGUF.

Do you see Image being generated in Live Preview? Or it's also black.

Hi, this problem occurs a lot since you updated the sampler. Below is a screenshot of the issue occurring while the image is generating: P.S. LoRAs seem not to work as well. I think this might be related to the GGUF. image

Iory1998 avatar Aug 20 '24 03:08 Iory1998

I am facing exactly the same issue , in my case, live preview also gives black image

Same here.

Iory1998 avatar Aug 20 '24 03:08 Iory1998

I am facing exactly the same issue , in my case, live preview also gives black image

Same here :(

jaspervanblerk avatar Aug 20 '24 13:08 jaspervanblerk

I try version updated sept 18 with hash 53cd00d125e872ee619b7ae443245630e4d19682 and vae works

sunnyyangyangyang avatar Aug 20 '24 15:08 sunnyyangyangyang

Just got the same error almost at the end of a very long wait to flux and hires fix a big image.

mirh avatar Sep 12 '24 05:09 mirh