Hi, guys. Thanks for your great jobs. I notice a possible problem when running demo_gr.py. The init_image only rescale to [0, 1], but I think the right range is [-1, 1]. Another case is when setting Noising strength=0 in img2img mode with flux-dev model, we got a overexposed pictures, the vae reconstruction seems fail.
Here is a part of code from demo_gr.py, line 71-79.
Hi, guys. Thanks for your great jobs. I notice a possible problem when running demo_gr.py. The init_image only rescale to [0, 1], but I think the right range is [-1, 1]. Another case is when setting Noising strength=0 in img2img mode with flux-dev model, we got a overexposed pictures, the vae reconstruction seems fail.
Here is a part of code from demo_gr.py, line 71-79.
In demo_st.py, we can find the image rescale to [-1, 1] in get_image() function before vae encoding. We can obtain a normal result.