black-forest-labs / flux

Official inference repo for FLUX.1 models
Apache License 2.0
15.34k stars 1.1k forks source link

Correct image range? #180

Open faad3 opened 1 week ago

faad3 commented 1 week ago

Hi, everyone!

I have noticed a discrepancy in demo_gr.py and demo_st.py regarding how images are normalized. I'm confused about the correct image range for VAE, because my testing shows that it works visually well for both [-1, 1] and [0, 1].

Any thoughts on this? Why does it work well for both ranges? And what is the original range I should stick to?

Thanks in advance!