What is the difference between StableDiffusionPipeline and DiffusionPipeline
Hi guys, I would like to enquire that what is the difference between StableDiffusionPipeline and DiffusionPipeline. Can we loading stable diffusion weight using DiffusionPipeline, such aspipeline = DiffusionPipeline.from_pretrained(“runwayml/stable-diffusion-v1-5”)Thanks
2023-12-18T00:23:14Z
DiffusionPipeline is a generic class that can be extended for specific tasks. StableDiffusionPipeline inherits and extends the DiffusionPipeline class specifically for text-2-image tasks.You can callDiffusionPipeline.from_pretrainedwhich will recognize and load aStableDiffusionPipelinebased on the model that is passed to it. Or you can callStableDiffusionPipeline.from_pretraineddirectly also.
2023-12-18T02:45:21Z
Thanks for your kind reply. So basically they will go to the samefile.pyin diffusers. The DiffusionPipeline finds the StableDiffusionPipeline class in thesrcdir automatically right?