text
Custom pipelines and components in Diffusers 🎸
Custom pipelines and components in Diffusers 🎸
new_line
new_line
text
Wanted to use customized pipelines and other components (schedulers, unets, text encoders, etc.) in Diffusers?
Wanted to use customized pipelines and other components (schedulers, unets, text encoders, etc.) in Diffusers?
new_line
new_line
text
Found it inflexible? 
Found it inflexible? 
new_line
new_line
text
Since the first dawn on earth, we have supported loading custom pipelines via a 
Since the first dawn on earth, we have supported loading custom pipelines via a 
inline_code
`custom_pipeline`
custom_pipeline
text
 argument 🌄
 argument 🌄
new_line
new_line
text
These pipelines are inference-only, i.e., the assumption is that we're leveraging an existing checkpoint (e.g., runwayml/stable-diffusion-v1-5) and ONLY modifying the pipeline implementation.  
These pipelines are inference-only, i.e., the assumption is that we're leveraging an existing checkpoint (e.g., runwayml/stable-diffusion-v1-5) and ONLY modifying the pipeline implementation.  
new_line
new_line
text
We have many cool pipelines, implemented that way. They all share the same benefits available to a 
We have many cool pipelines, implemented that way. They all share the same benefits available to a 
inline_code
`DiffusionPipeline`
DiffusionPipeline
text
, no compromise there 🤗
, no compromise there 🤗
new_line
new_line
text
Check them here:
Check them here:
new_line
link
https://github.com/huggingface/diffusers/tree/main/examples/community
https://github.com/huggingface/diffusers/tree/main/examples/community
new_line
new_line
text
Then we might have a requirement of everything customized i.e., custom components along with a custom pipeline. Sure, that's all possible. 
Then we might have a requirement of everything customized i.e., custom components along with a custom pipeline. Sure, that's all possible. 
new_line
new_line
text
All you have to do is keep the implementations of those custom components on the Hub repository you're loading your pipeline checkpoint from.
All you have to do is keep the implementations of those custom components on the Hub repository you're loading your pipeline checkpoint from.
new_line
new_line
text
SDXL Japanese was implemented like this 🔥
SDXL Japanese was implemented like this 🔥
new_line
resource
https://huggingface.co/stabilityai/japanese-stable-diffusion-xl
model
stabilityai/japanese-stable-diffusion-xl
https://huggingface.co/stabilityai/japanese-stable-diffusion-xl
new_line
new_line
text
Full guide is available here ⬇️
Full guide is available here ⬇️
new_line
link
https://huggingface.co/docs/diffusers/main/en/using-diffusers/custom_pipeline_overview
https://huggingface.co/docs/diffusers/main/en/using-diffusers/custom_pipeline_overview
new_line
new_line
text
And, of course, these share all the benefits that come with 
And, of course, these share all the benefits that come with 
inline_code
`DiffusionPipeline`
DiffusionPipeline
text
. 
. 
Custom pipelines and components in Diffusers 🎸

Wanted to use customized pipelines and other components (schedulers, unets, text encoders, etc.) in Diffusers?

Found it inflexible? 

Since the first dawn on earth, we have supported loading custom pipelines via a `custom_pipeline` argument 🌄

These pipelines are inference-only, i.e., the assumption is that we're leveraging an existing checkpoint (e.g., runwayml/stable-diffusion-v1-5) and ONLY modifying the pipeline implementation.  

We have many cool pipelines, implemented that way. They all share the same benefits available to a `DiffusionPipeline`, no compromise there 🤗

Check them here:
https://github.com/huggingface/diffusers/tree/main/examples/community

Then we might have a requirement of everything customized i.e., custom components along with a custom pipeline. Sure, that's all possible. 

All you have to do is keep the implementations of those custom components on the Hub repository you're loading your pipeline checkpoint from.

SDXL Japanese was implemented like this 🔥
https://huggingface.co/stabilityai/japanese-stable-diffusion-xl

Full guide is available here ⬇️
https://huggingface.co/docs/diffusers/main/en/using-diffusers/custom_pipeline_overview

And, of course, these share all the benefits that come with `DiffusionPipeline`. 
🔥
radames