Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pieroit/stable-diffusion-jupyterlab-docker

Generate images with Stable Diffusion inside JupyterLab!
https://github.com/pieroit/stable-diffusion-jupyterlab-docker

Last synced: 8 days ago
JSON representation

Generate images with Stable Diffusion inside JupyterLab!

Awesome Lists containing this project

README

        

# 🐔 Stable Diffusion JupyterLab Docker

Generate images with Stable Diffusion inside JupyterLab!
- start with one command
- GPU ready
- Notebooks included for:
- text2image
- image2image
- inpainting
- (coming soon) outpainting

## Prerequisites
- [Docker](https://docs.docker.com/get-docker/)
- [Docker compose](https://docs.docker.com/compose/install/)
- [Nvidia-docker](https://github.com/NVIDIA/nvidia-docker)
- Log into Huggin Face and accept [Stable Diffusion License](https://huggingface.co/runwayml/stable-diffusion-v1-5)
- Generate a [Hugging Face token](https://huggingface.co/settings/tokens)

## How to run
- Fire up a terminal and clone this repo

```
git clone https://github.com/pieroit/stable-diffusion-jupyterlab-docker.git
```
- Jump into the folder

```
cd stable-diffusion-jupyterlab-docker
```
- Run container

```
docker-compose up
```

- The first time (only) it will take a while. At the end you should see a link in the terminal, click on it and JupyterLab should open in the browser.

- Run the first notebook to download SD and save it on disk
- Use the second notebook to load SD from disk and use it. Enjoy!!!

- To stop the workstation, CTRL+c in the terminal and then

```
docker-compose down
```