Update README.md

This commit is contained in:
Qing 2024-03-04 09:28:23 +08:00 committed by GitHub
parent eb77e2b27c
commit f1cf278d19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,3 +96,25 @@ iopaint run --model=lama --device=cpu \
When `--mask` is a path to a mask file, all images will be processed using this mask. When `--mask` is a path to a mask file, all images will be processed using this mask.
You can see more information about the available models and plugins supported by IOPaint below. You can see more information about the available models and plugins supported by IOPaint below.
## Development
Install [nodejs](https://nodejs.org/en), then install the front-end dependencies.
```bash
git clone https://github.com/Sanster/IOPaint.git
cd IOPaint/web_app
npm install
```
Start front-end development environment
```bash
npm run dev
```
Start back-end service
```bash
python3 main.py --model lama
```
Then you can visit `http://localhost:5173/` for development. The front-end code will automatically update after being modified, but the back-end needs to restart the service after modifying the python code.