T2I-Adapter
T2I-Adapter copied to clipboard
What is the purpose of * 2-1 operations on images during?
What is the purpose of performing * 2-1 operations on images during the first stage of encoding during training?This differs from standard SD training, wouldn't it lead to poor encoding in VAE?

https://github.com/TencentARC/T2I-Adapter/blob/main/train_seg.py
The input of the encoder should range from -1 to 1. The make_batch function in official SD: https://github.com/CompVis/stable-diffusion/blob/main/scripts/inpaint.py#L29:~:text=batch%5Bk%5D%20%3D%20batch%5Bk%5D*2.0%2D1.0
@westfish Hi, Could you please add your WeChat and ask some questions about training? my email is [email protected].