-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: Flux Fill inpainting does not work #7836
Comments
Please share the contents of your |
This is it:
|
Thanks, I suspect this is related to the GTX 1660's limited support for We force the GTX 1660 to use @brandonrising Do you recall FLUX strictly requires
bfloat16 .
|
Thanks, what you wrote should be the cause of my issue. I have checked that Nvidia 20xx series and 16xx series have Compute capability 7.5 cuda gpus. But 8.0 is required for bfloat16 nvidia docs, which can be found in 30xx series RTX cards and up. |
This resolves an issue where specifying `float32` precision causes FLUX Fill to error. I noticed that our other customized torch modules do some dtype casting themselves, so maybe this is a fine place to do this? Maybe this could break things... See #7836
Interesting, I would have expected all FLUX models to fail. I was able to reproduce the issue on my 4090 by manually setting That helped me to understand the issue enough to find a fix. I've drafted the fix but am not confident that it is the right way to handle it. |
Is there an existing issue for this problem?
Operating system
Linux
GPU vendor
Nvidia (CUDA)
GPU model
GTX 1660
GPU VRAM
6GB
Version number
5.9.0rc2-cuda
Browser
Firefox 136.0.2
Python dependencies
{
"accelerate": "1.0.1",
"compel": "2.0.2",
"cuda": "12.4",
"diffusers": "0.31.0",
"numpy": "1.26.3",
"opencv": "4.9.0.80",
"onnx": "1.16.1",
"pillow": "11.0.0",
"python": "3.11.11",
"torch": "2.4.1+cu124",
"torchvision": "0.19.1+cu124",
"transformers": "4.46.3",
"xformers": null
}
What happened
I wanted to test the new pre-release with FLUX Fill support. I have downloaded the model from starter models. I cannot get it to work for inpainting.
When I create a raster layer and an inpainting mask layer, select the new FLUX Fill main model, draw an area for inpainting, press Invoke, the following error is presented:
I did not use any other layers, controls, IP adapter, Lora, nothing else.
The console log:
What you expected to happen
FLUX Fill model can be used for inpainting.
How to reproduce the problem
I always have this issue, if FLUX Fill main model is selected. Both on canvas and on workflow.
Additional context
No response
Discord username
No response
The text was updated successfully, but these errors were encountered: