Last active
October 14, 2022 04:05
-
-
Save geerlingguy/384ed4aba35e3118f2a0f358fc974162 to your computer and use it in GitHub Desktop.
Install Stable Diffusion WebUI on Ubuntu 22.04 with Nvidia GPU
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First install Docker and docker-compose following this guide: | |
# https://docs.docker.com/engine/install/ubuntu/ | |
# | |
# Make sure you add your user to the `docker` group: | |
sudo usermod -aG docker $USER | |
# ...then log out and log back in to make that take effect. (I actually had to reboot, le sigh) | |
# Second install the NVIDIA Container Toolkit following this guide: | |
# https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#setting-up-nvidia-container-toolkit | |
# Clone the stable-diffusion-webui repo. | |
git clone https://github.com/sd-webui/stable-diffusion-webui.git | |
cd stable-diffusion-webui | |
cp .env_docker.example .env_docker | |
# Build the stable-diffusion environment. | |
docker-compose up -d | |
# ...takes a while. Monitor progress with `docker-compose logs -f`. | |
# Once you see "TODO", the environment is ready. | |
# Go to a browser and visit localhost:7860 | |
# (Or elsewhere on the network, [ip]:7860) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These instructions don't work. You should specify the commit you used to generate these instructions with ;)