stable-diffusion icon indicating copy to clipboard operation
stable-diffusion copied to clipboard

负面提示词为什么是uncon?正向是con?

Open henbucuoshanghai opened this issue 2 years ago • 0 comments

堆叠完后,隐向量、步数和prompt条件一起传入网络中,将结果在bs维度进行使用chunk进行分割

e_t_uncond, e_t = self.model.apply_model(x_in, t_in, c_in).chunk(2) e_t = e_t_uncond + unconditional_guidance_scale * (e_t - e_t_uncond)

为何如此计算呢?

henbucuoshanghai avatar Oct 03 '23 03:10 henbucuoshanghai