1
0
Fork 0

fix(docs): add section about custom config

This commit is contained in:
Sean Sube 2023-01-06 14:47:39 -06:00
parent 08270f2d52
commit a0172f8e00
1 changed files with 25 additions and 0 deletions

View File

@ -46,6 +46,7 @@ Based on work by:
- [Configuring and hosting the client](#configuring-and-hosting-the-client) - [Configuring and hosting the client](#configuring-and-hosting-the-client)
- [Using the web interface](#using-the-web-interface) - [Using the web interface](#using-the-web-interface)
- [Running from containers](#running-from-containers) - [Running from containers](#running-from-containers)
- [Customizing the config](#customizing-the-config)
## Setup ## Setup
@ -281,3 +282,27 @@ read-only, but outputs should be read-write.
> podman run -p 3000:3000 --rm docker.io/ssube/onnx-web-gui:main-buster > podman run -p 3000:3000 --rm docker.io/ssube/onnx-web-gui:main-buster
``` ```
### Customizing the config
You can customize the config file to change the default model, platform (hardware acceleration), scheduler, and prompt.
If you have a good base or example prompt, you can set that in the config file:
```json
{
"default": {
"model": "stable-diffusion-onnx-v1-5",
"platform": "amd",
"scheduler": "euler-a",
"prompt": "an astronaut eating a hamburger"
}
}
```
When running the dev server, `node serve.js`, the config file at `out/config.json` will be loaded. If you want to load
a different config file, save it to your home directory named `onnx-web-config.json` and copy it into the output
directory after building the bundle:
```shell
> make bundle && cp -v ~/onnx-web-config.json out/config.json
```