What is Stable Diffusion?
Stable Diffusion is a family of latent diffusion models that generate images from conditions such as text. Related research includes work by the CompVis team, whose authors include researchers from Ludwig Maximilian University of Munich.
What you need
- Google Account
That’s all.
Generation steps
This tutorial updates a 2023 example for the current Diffusers API. A free Colab GPU is not guaranteed; usage limits, GPU types, and runtime availability change. If no GPU is assigned, try again later or use another available runtime.
Before loading the model weights, read the model card and its CreativeML OpenRAIL-M license on Hugging Face. Follow its prohibited-use and distribution terms and the laws where you use it. The license does not guarantee that an output is lawful or free of third-party rights.
EasyNegative in this example is a separately distributed textual-inversion embedding. The code below loads it before using the token in the prompt.
- Open https://colab.research.google.com
- Select
Fileon the top left and chooseNew notebook - Select
Editand chooseNotebook settings - Change the
Hardware acceleratortoGPU
- Paste and execute the following code
| |
- Paste and execute the following code
| |
- Paste and execute the following code
| |
- Paste and execute the following code
| |
The Prompt used here is based on the Prompt at https://huggingface.co/gsdf/Counterfeit-V2.5.
Generation results (some)



References
- https://huggingface.co/gsdf/Counterfeit-V2.5
- Tried making an image generation program using Artificial Intelligence (AI) in 15 minutes [Live Programming]
- Google Colab FAQ: resource limits
- Diffusers: loading pipelines
- Stable Diffusion model card and license
- CompVis: Stable Diffusion research and code
- EasyNegative textual-inversion embedding
