GithubHelp home page GithubHelp logo

marcus-arcadius / stable-diffusion-k8s Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amithkk/stable-diffusion-k8s

0.0 1.0 0.0 453 KB

⚡Instant Stable Diffusion on k8s(Kubernetes) with Helm

License: MIT License

Smarty 44.35% Dockerfile 55.65%

stable-diffusion-k8s's Introduction

Stable Diffusion on Kubernetes with Helm

Run Stable Diffusion with companion models on a GPU-enabled Kubernetes Cluster - complete with a WebUI and automatic model fetching for a 2 step install that takes less than 2 minutes (excluding download times).

Uses the nvidia/cuda image as a base.

Screenshot of the Stable Diffusion UI

Features

  • Automatic Model Fetching
  • Works with gpu-operator, bundling CUDA libraries
  • Interactive UI with many features, and more on the way!
  • GFPGAN for face reconstruction, RealESRGAN for super-sampling.
  • Textual Inversion
  • many more!

Prerequisites

  • Kubernetes Cluster with GPUs attached to atleast one node, and NVIDIA's gpu-operator set up successfully
  • helm installed locally

Setup

  • Add the helm repo with helm repo add amithkk-sd https://amithkk.github.io/stable-diffusion-k8s
  • Fetch latest charts with helm repo update
  • (Optional) Create your own values.yaml with customized settings
    • Some things that you might want to change could include the nodeAffinity, cliArgs (see below) and ingress settings (that will allow you to access this externally without needing to kubectl port-forward)
  • Install with helm install --generate-name amithkk-sd/stable-diffusion -f <your-values.yaml>

Wait for the containers to come up and follow the instructions returned by Helm to connect. This may take a while as it has to download a ~5GiB docker image and ~5GiB of models

Config

By extending your values.yaml you can change the cliArgs key, which contains the arguments that will be passed to the WebUI. By default: --extra-models-cpu --optimized-turbo are given, which allow you to use this model on a 6GB GPU. However, some features might not be available in the mode.

You can find the full list of arguments here

FAQ

Disclaimer

The author(s) of this project are not responsible for any content generated using this interface.

Thanks

Special thanks to everyone behind these awesome projects, without them, none of this would have been possible:

stable-diffusion-k8s's People

Contributors

amithkk avatar

Watchers

 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.