6
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 ...
Get Using Stable Diffusion with Python now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.