StableDiffusionPipeline requires the transformers library but it was not found in your environment

Is anyone else having this error when running the stable_diffusion notebook?

Try installing the requirements.txt file from this PR first: Add requirements.txt file by dpoulopoulos · Pull Request #1 · fastai/diffusion-nbs · GitHub

Just run pip install -r requirements.txt

3 Likes