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

Split the api to support comfyui like workflow

Open chinshou opened this issue 1 year ago • 1 comments

For instance, some effects require combining multiple different control networks to achieve them, which is easy to implement in ComfyUI. However, this is not possible with the current Stable Diffusion C API. Is it feasible to split the API into modules like module loader, VAE decoder/encoder, latent image generation, k-sampler, control network application, etc.?

chinshou avatar May 09 '24 20:05 chinshou

I'm also looking into this, I have successfully managed to split model loading and inferencing with the scheduler, rgn, and all the parameters reset on fast inference, but now looking into split it more as you said and also wondering about control net merging.

pedroCabrera avatar May 31 '24 02:05 pedroCabrera