Stable/Disco Diffusion DIY


iOS

Stable Diffusion

If you have an iOS phone, you can use the following application to try Stable Diffusion on the go: https://apps.apple.com/cn/app/draw-things-ai-generation/id6444050820?l=en

Disclaimer: We are not affiliated with the developer of this application. Please do you own research before using the application.

Desktop

A few words before starting.

Configuring Stable Diffusion or Disco Diffusion on your own device is a fairly technical undertaking. At the very least, you need to be able to use the command line tools.

Additionally, you need a computer with a dedicated Nvidia GPU to be able to setup Stable Diffusion. Currently support for Apple M chip devices and AMD GPUs is not widespread, however, you can use these resources as a starting point to find tools that do support your hardware.

Setup

You need to install Docker before using these resources. You can get Docker for free here: https://www.docker.com/

Stable Diffusion

The Stable Diffusion can be installed using the following GitHub repository: https://github.com/AbdBarho/stable-diffusion-webui-docker

Simply follow the Setup guide and you are set up. https://github.com/AbdBarho/stable-diffusion-webui-docker/wiki/Setup

I have also added the commands below.

git clone https://github.com/AbdBarho/stable-diffusion-webui-docker
docker compose --profile download up --build
docker compose --profile auto up --build

auto is the most feature-rich option and is the suggested one.

Disco Diffusion

Disco Diffusion setup is a little more convoluted.

We will be using DiscoArt from Jina-AI for the Disco Diffusion server. https://github.com/jina-ai/discoart

Then, using the Disco Diffusion UI repository to setup the UI. https://github.com/uetuluk/disco-diffusion-ui

I have included the commands below.

docker run --entrypoint "python" -p 51001:51001 -v $(pwd):/home/jovyan/ -v $HOME/.cache:/root/.cache --gpus all jinaai/discoart -m discoart serve
docker run -p 8501:8501 -e SERVER_LOCATION="http://127.0.0.1:51001" uetuluk/disco-diffusion-ui:latest

Leave a Reply