fengwang / Stable-Diffusion-NCNN

Stable Diffusion inference in pure C++
60 stars 5 forks source link

[( *u_ptr ) = ( *u_ptr ) + 7 * ( ( *c_ptr ) - ( *u_ptr ) );] #9

Open henbucuoshanghai opened 1 year ago

henbucuoshanghai commented 1 year ago
        [( *u_ptr ) = ( *u_ptr ) + 7 * ( ( *c_ptr ) - ( *u_ptr ) );]

https://github.com/fengwang/Stable-Diffusion-NCNN/blob/e3ba9d807c0c40197c8b13be2d94c690b52f7045/stable_diffusion.hpp#L385 why?

henbucuoshanghai commented 1 year ago

it means?denoised_uncond and denoised_cond? ( u_ptr ) = ( u_ptr ) + 7 ( ( c_ptr ) - ( *u_ptr ) ); tks