Notebooks
H
Hugging Face
In Painting With Stable Diffusion Using Diffusers

In Painting With Stable Diffusion Using Diffusers

hf-notebooksdiffusers

Open In Colab

In-painting pipeline for Stable Diffusion using 🧨 Diffusers

This notebook shows how to do text-guided in-painting with Stable Diffusion model using 🤗 Hugging Face 🧨 Diffusers library.

For a general introduction to the Stable Diffusion model please refer to this colab.

[ ]

To use private and gated models on 🤗 Hugging Face Hub, login is required. If you are only using a public checkpoint (such as runwayml/stable-diffusion-inpainting in this notebook), you can skip this step.

[2]
Login successful
Your token has been saved to /root/.huggingface/token
[1]
[2]
Fetching 15 files:   0%|          | 0/15 [00:00<?, ?it/s]
[3]
[4]
Output
[5]
Output
[6]
  0%|          | 0/50 [00:00<?, ?it/s]
[7]
[8]
Output

Gradio Demo

[9]
[10]
Colab notebook detected. This cell will run indefinitely so that you can see errors and logs. To turn off, set debug=False in launch().
Running on public URL: https://e52f060882d60b09.gradio.app

This share link expires in 72 hours. For free permanent hosting and GPU upgrades (NEW!), check out Spaces: https://huggingface.co/spaces
  0%|          | 0/50 [00:00<?, ?it/s]
  0%|          | 0/50 [00:00<?, ?it/s]
Keyboard interruption in main thread... closing server.
(<gradio.routes.App at 0x7eff58b4ef90>,
, 'http://127.0.0.1:7860/',
, 'https://e52f060882d60b09.gradio.app')
[ ]