Giter VIP home page Giter VIP logo

samexner / stable-diffusion-rocker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ashleykleynhans/stable-diffusion-docker

0.0 0.0 0.0 427 KB

Docker image for Stable Diffusion WebUI with ControlNet, After Detailer, Dreambooth, Deforum and roop extensions, as well as Kohya_ss and ComfyUI

License: GNU General Public License v3.0

Shell 41.28% Python 2.46% HTML 7.15% Dockerfile 49.11%

stable-diffusion-rocker's Introduction

Docker image for A1111 Stable Diffusion Web UI, Kohya_ss and ComfyUI

ROCm fork. In progress.

Installs

Building the Docker image

Since the Stable Diffusion models are pretty large, you will need at least 8GB of system memory (not GPU VRAM) to build this image.

The image CAN be built on a t3a.large AWS EC2 instance which has 2 x vCPU and 8GB of system memory. It CANNOT be built on any instances with less memory, eg. t3a.medium.

# Clone the repo
git clone --recursive https://github.com/samexner/stable-diffusion-ROCker.git

# Download the models
cd stable-diffusion-ROCker
wget https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned.safetensors
wget https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.safetensors
wget https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors
wget https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-1.0/resolve/main/sd_xl_refiner_1.0.safetensors
wget https://huggingface.co/madebyollin/sdxl-vae-fp16-fix/resolve/main/sdxl_vae.safetensors

# Build and tag the image
docker build -t username/image-name:1.0.0 .

# Log in to Docker Hub
docker login

# Push the image to Docker Hub
docker push username/image-name:1.0.0

Running Locally

Install AMD ROCm Driver

Start the Docker container

docker run -it -v /workspace -it --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --device=/dev/kfd --device=/dev/dri --group-add video --ipc=host --shm-size 8G -p 3000:3001 -p 3010:3011 -p 3020:3021 -p 6006:6066 -p 8888:8888 -p 8000:8000 -e JUPYTER_PASSWORD=Jup1t3R! -e ENABLE_TENSORBOARD=1 psnrainbowtrout/sdrocker:1.0.0

You should substitute the image name and tag with your own.

Acknowledgements

  1. RunPod for providing most of the container code.
  2. Bernard Maltais (core developer of Kohya_ss) for assisting with optimizing the Docker image.
  3. Ashley Kleynhans for the original image configured for NVidia.

Community and Contributing

Pull requests and issues on GitHub are welcome. Bug fixes and new features are encouraged.

stable-diffusion-rocker's People

Contributors

ashleykleynhans avatar samexner avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.