Closed DavidDragonsage closed 2 months ago
If the GPU memory is less than 6GB, it is recommended to still use Fooocus, as it is not possible to use the newly added models in SimpleSDXL.
Unfortunately you gave me a different answer today at the mainline Fooocus site: https://github.com/lllyasviel/Fooocus/discussions/3548
While I do not have enough VRAM to run the non-SDXL models that require 6 GB or more, I was hoping to use the many other helpful features that SimpleSDXL has.
Interestingly enough, for some reason I was able to generate an image successfully when I used the SuperPrompt option (I found this out just now).
The main difference between SimpleSDXL and Fooocus is the addition of new models. I thought you were going to use those new models. Then I need to adapt to low VRM and block the functionality of the newly added models, which will be much better.
Thank you, that will be wonderful! I see you have already released an update. I saw it detecting low VRAM and turning off Comfy.
Unfortunately I am still getting that same error once generation starts, as shown in the console log above:
0/30 [00:00<?, ?it/s]C:\SimpleAI\SimpleSDXL\modules\core.py:257: RuntimeWarning: invalid value encountered in cast x_sample = x_sample.cpu().numpy().clip(0, 255).astype(np.uint8)
There are several other features besides the new models that I am excited about, such as Super Prompt and IC-Light.
I have a small but active Facebook group, and there is a lot of enthusiasm for SimpleSDXL. I am keeping them updated on my progress. Someone said this new surprise is like Christmas! 🙂 https://www.facebook.com/groups/fooocus
I don't know if this information may be helpful in troubleshooting this error, but I found these references to the error "invalid value encountered in cast x_sample =" https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/15412 https://github.com/lllyasviel/stable-diffusion-webui-forge/issues/1278
I did try the Euler/Normal combination of sampler and scheduler but I got the same error.
I installed a 12GB VRAM card today and so this issue no longer affects me. However, if you need someone to test a possible fix I do not mind installing my old 4GB VRAM card to do so.
On the other hand, I now know that two other people with the NVIDIA GeForce GTX 1650 with 4 GB VRAM have been able to run both SDXL and Flux models in SimpleSDXL. And yesterday I was successful in running a Flux model with my old video card.
So I am thinking that my particular system was an anomaly, and of course the NVIDIA GeForce GTX 1650 with 4 GB VRAM was never approved for running mainline Fooocus. It may be best to close this bug report as being resolved!
Checklist
What happened?
SimpleSDXL is only producing purely black images.
I get this error just after generation begins:
0/30 [00:00<?, ?it/s]C:\SimpleAI\SimpleSDXL\modules\core.py:257: RuntimeWarning: invalid value encountered in cast x_sample = x_sample.cpu().numpy().clip(0, 255).astype(np.uint8)
Steps to reproduce the problem
1 Enter a simple prompt, such as "the cat in the hat" 2 Press Generate 3 The preview image is black and so is the final image, otherwise generation progress seems normal
What should have happened?
Fooocus should have produced an image of a "cat in a hat".
What browsers do you use to access Fooocus?
Mozilla Firefox
Where are you running Fooocus?
Locally
What operating system are you using?
Windows 10
Console logs
Additional information
This is the first time I have tried to make an image in SimpleSDXL. This problem occurs with both the juggernaut-X-RunDiffusion-NSFW.safetensors and RealvisXLv40_v40Bakedvae.safetensors base models.
I have a PC which does not meet the minimum requirements for mainline Fooocus. However, Fooocus has always run properly, it is just a bit slow. These are the PC specs:
Acer Nitro N50-600(DCH) CPU: Intel Core i5 9400F @2.90 GHz System RAM: 28 GB GPU: NVIDIA GeForce GTX 1650 with 4 GB VRAM