Using Stable Diffusion Models
When we start using Stable Diffusion models, we will immediately encounter different kinds of model files and will need to know how to convert a model file to the desired format.
In this chapter, we are going to get more familiar with Stable Diffusion model files, covering how to load models from the Hugging Face repository using model IDs. We’ll also provide sample code to load safetensors
and .ckpt
model files shared by the open source community.
In this chapter, we will cover the following topics:
- Loading the Diffusers model
- Loading model checkpoints from safetensors and ckpt files
- Using CKPT and safetensors files with Diffusers
- Model safety checker
- Converting checkpoint model files to the Diffusers format
- Using Stable Diffusion XL
By the end of this chapter, you will have learned about the Stable Diffusion model file types and how to convert and load model files to a format that can be loaded with Diffusers...