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

Flux generates terrible images #2542

Open
bulutharbeli opened this issue Jan 9, 2025 · 6 comments
Open

Flux generates terrible images #2542

bulutharbeli opened this issue Jan 9, 2025 · 6 comments

Comments

@bulutharbeli
Copy link

bulutharbeli commented Jan 9, 2025

I have tried different setups and models but all end up with terrible images.
Here my setups below. Any help? Thanks

I tried to use:
-flux1-dev-bnb-nf4-v2.safetensors

  • flux_dev.safetensors
  • t5xxl_fp16.safetensors
  • t5xxl_fp8_e4m3fn.safetensors
  • ViT-L-14-TEXT-detail-improved-hiT-GmP-TE-only-HF.safetensors
    I tried with lora and wtihout lora too.

image

Here is my system details;
image

@HMRMike
Copy link

HMRMike commented Jan 9, 2025

Maybe the dual CFG settings are to blame. Don't use both at the same time.
Disable (set to 0) Distilled CFG when you load de-distilled Flux. Also distilled models need only distilled CFG.
Also distilled Flux loves a LOT of steps, at least 25 starts looking decent with Beta, Simple will be nice with 40+.

00116-751321319

@qancho
Copy link

qancho commented Jan 10, 2025

CFG Scale has to be set to 1

#981

@bulutharbeli
Copy link
Author

Maybe the dual CFG settings are to blame. Don't use both at the same time. Disable (set to 0) Distilled CFG when you load de-distilled Flux. Also distilled models need only distilled CFG. Also distilled Flux loves a LOT of steps, at least 25 starts looking decent with Beta, Simple will be nice with 40+.

00116-751321319

Thanks for your answer. I have tried the different models of flux and also disabled Distilled CFG but I am still getting bad images. Increased the steps too but unfortunately nothing change.

@bulutharbeli
Copy link
Author

bulutharbeli commented Jan 10, 2025

CFG Scale has to be set to 1

#981

I followed the same setup but the result was not good. I used exactly the same prompt on google imageFX. It looks way better.

image
image
image

Google ImageFX

image

@qancho
Copy link

qancho commented Jan 10, 2025

I don't know what you expect considering you're comparing Flux with Imagen.

Copied your prompt and this is what I get (its pixelwave FLUX tho, not the small nf4 model):
00034-3354424361

@UnconnectedBedna
Copy link

UnconnectedBedna commented Jan 11, 2025

Try lowering your steps. Flux often works very well with around 10 steps. (but this might not be viable here, text might get scrambled)
And as mentioned, CFG always to 1.
You can use Distilled CFG Scale to play around, but 3.5 is usually the best.

And these resolutions work better for flux:

  • 1024 x 1024 (Square)
  • 1216 x 832 (3:2)
  • 1344 x 768 (16:9)

Edit:
Example using flux1DevHyperNF4 (hyper instead of BNB) with 10 steps.

A turkish Airlines futuristic aircraft from 2100, featuring a sharp, needle-like body designed for ultra-fast intercontinental travel. Constructed with a titanium shell that reflects stars and cosmic light, the airplane appears both elegant and indestructible. The crescent and star logo glows subtly on the wings and tail, harmonizing with the blue exhaust flames emitted by its fusion engine. The craft is depicted cruising at incredible speed above Earth's atmosphere, with the plant's glowing curvature and orbital rings providing a stunning backdrop. Hyper-realistic artwork, highlighting innovation, advanced engineering, and the future of aviation.
Steps: 10, Sampler: Euler, Schedule type: Simple, CFG scale: 1, Distilled CFG Scale: 3.5, Seed: 1389487358, Size: 1216x832, Model hash: 7cacd3ba4b, Model: flux1DevHyperNF4Flux1DevBNB_flux1DevHyperNF4, VAE Decoder: TAESD, Version: f2.0.1v1.10.1-previous-635-gf5330788

00935-1389487358

This is obv not a "good image" engines backwards and all.
I use it as proof of concept with 10 steps. :) (ie. I only generated one image and this is what I got)

Edit 2:
I think this whole conversation would fit better in discussions rather than in an issue...

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

4 participants