To use Stable Diffusion with this project, you will need to download and install stable-diffusion-webui
- Note: you need a compatible GPU. Nvidia is recommended, but there is no clear resource on incompatible GPUs. Any decent GPU should work.
1. Follow download and installation instructions from stable-diffusion-webui readme
-
Edit your webui-user.bat file by adding the following line before the call command:
-
set COMMANDLINE_ARGS=--api
- Your .bat file should like this with all other settings default
@echo off set PYTHON= set GIT= set VENV_DIR= set COMMANDLINE_ARGS=--api call webui.bat
-
Edit your webui-user.sh file by adding the following line:
-
export COMMANDLINE_ARGS="--api"
- Your .sh file should like this with all other settings default
export COMMANDLINE_ARGS="--api" #!/bin/bash ######################################################### # Uncomment and change the variables below to your need:# ######################################################### # ...rest
- You will need the stable diffusion webui API URL, which should be `http://127.0.0.1:7860`
- Alternatively: you (the admin) can set the value in `\.env` to bypass the prompt
- `SD_WEBUI_URL=http://127.0.0.1:7860`