2022-09-16 17:18:15 +00:00
|
|
|
# Stable Diffusion Web UI
|
|
|
|
|
2022-09-18 00:45:06 +00:00
|
|
|
## Run
|
2022-09-18 07:33:09 +00:00
|
|
|
|
2022-10-04 20:58:32 +00:00
|
|
|
- `python scripts/dream.py --web` serves both frontend and backend at
|
|
|
|
http://localhost:9090
|
2022-09-16 17:18:15 +00:00
|
|
|
|
2022-11-09 21:44:59 +00:00
|
|
|
## Environment
|
2022-09-18 07:33:09 +00:00
|
|
|
|
|
|
|
Install [node](https://nodejs.org/en/download/) (includes npm) and optionally
|
|
|
|
[yarn](https://yarnpkg.com/getting-started/install).
|
|
|
|
|
2022-10-04 20:58:32 +00:00
|
|
|
From `frontend/` run `npm install` / `yarn install` to install the frontend
|
|
|
|
packages.
|
2022-09-18 07:33:09 +00:00
|
|
|
|
2022-09-18 00:45:06 +00:00
|
|
|
## Dev
|
2022-09-16 17:18:15 +00:00
|
|
|
|
2022-11-09 21:44:59 +00:00
|
|
|
1. From `frontend/`, run `npm run dev` / `yarn dev` to start the dev server.
|
2022-10-04 20:58:32 +00:00
|
|
|
2. Run `python scripts/dream.py --web`.
|
|
|
|
3. Navigate to the dev server address e.g. `http://localhost:5173/`.
|
2022-09-16 17:18:15 +00:00
|
|
|
|
2022-09-18 07:33:09 +00:00
|
|
|
To build for dev: `npm build-dev` / `yarn build-dev`
|
|
|
|
|
|
|
|
To build for production: `npm build` / `yarn build`
|
2022-09-16 17:18:15 +00:00
|
|
|
|
|
|
|
## TODO
|
|
|
|
|
2022-09-17 06:32:59 +00:00
|
|
|
- Search repo for "TODO"
|