Skip to content

How to add new diffusion model pipeline? Like kandinsky-2-2 for example #268

Answered by bennyguo
Pashtetickus asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! You may want to take a look at threestudio/models/guidance/stable_diffusion_guidance.py. Basically you need to compute the loss for an input image, which is often done by evaluating the UNet (and VAE) of the diffusion model, but the specific operation varies from pipeline to pipeline. By the way, I've been re-writing all the guidance recently and you should feel more easy to implement new guidance with the refactored code.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Pashtetickus
Comment options

Answer selected by Pashtetickus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants