Skip to content
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

Blurry image with Flux Dev [SOLVED] #519

Open
olivbrau opened this issue Dec 11, 2024 · 4 comments
Open

Blurry image with Flux Dev [SOLVED] #519

olivbrau opened this issue Dec 11, 2024 · 4 comments

Comments

@olivbrau
Copy link

olivbrau commented Dec 11, 2024

Hi, here is my command (CPU backend) :

sd --diffusion-model .\flux_dev\flux1-dev-q4_0.gguf --clip_l .\flux_dev\clip_l.safetensors --vae .\flux_dev\ae.safetensors --t5xxl .\flux_dev\t5xxl_fp16.safetensors --sampling-method euler --steps 20 -H 512 -W 512 -t 20 -p "a lovely cat"

and here is the result : the cat seems very nice and realistic, but totally blurry
output

Did I miss something ? Does Flux dev need more steps ?
Thanks for your help !
Olivier

@Green-Sky
Copy link
Contributor

Can you check with --cfg-scale set to 1 ?
As stated in the docs https://github.com/leejet/stable-diffusion.cpp/blob/master/docs/flux.md#run

@stduhpf
Copy link
Contributor

stduhpf commented Dec 11, 2024

Ah yes, flux really don't handle CFG well.

@Green-Sky
Copy link
Contributor

Hm yea, we might want to think about setting defaults for some more values like cfg-scale, based on model detected.
We will need to communicate that to the user though.

@olivbrau
Copy link
Author

olivbrau commented Dec 11, 2024

You were right, I didn't read well the instructions. With 1.0, here is the result (the picture is exceptionally well done and realistic, I'm sure because there are a lot of cats in training images !)
output

@olivbrau olivbrau changed the title Blurry image with Flux Dev Blurry image with Flux Dev [SOLVED] Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants