Update readme for docker-compose

This commit is contained in:
cmdr2 2022-08-24 21:07:42 +05:30
parent 5e78ed5ba0
commit 3d36b5e848

View File

@ -17,17 +17,19 @@ All the processing will happen on your local computer, it does not transmit your
1. Download [Quick UI](https://github.com/cmdr2/stable-diffusion-ui/archive/refs/heads/main.zip) (this project)
2. Unzip: `unzip main.zip`
3. Enter: `cd stable-diffusion-ui-main`
4. Run: `docker-compose up` (warning: this will take some time during the first run, since it'll download Stable Diffusion's [docker image](https://replicate.com/stability-ai/stable-diffusion), nearly 17 GiB)
4. Run: `docker-compose up &` (warning: this will take some time during the first run, since it'll download Stable Diffusion's [docker image](https://replicate.com/stability-ai/stable-diffusion), nearly 17 GiB)
5. Open http://localhost:8000 in your browser
# Usage
1. Open http://localhost:8000 in your browser (after running `docker-compose up` from step 4 previously)
1. Open http://localhost:8000 in your browser (after running `docker-compose up &` from step 4 previously)
2. Enter a text prompt, like `a photograph of an astronaut riding a horse` in the textbox.
3. Press `Make Image`. This will take some time, depending on your system's processing power.
4. See the image generated using your prompt. If there's an error, the status message at the top will show 'error' in red.
Please [let me know](mailto:sd@cmdr2.org) if this worked (or didn't) for you!
To stop the server, please run `docker-compose down`
# Advanced Settings
You can also set the configuration like `seed`, `width`, `height`, `num_outputs`, `num_inference_steps` and `guidance_scale` using the 'show' button next to 'Advanced settings'.