73 lines
1.7 KiB
Markdown
73 lines
1.7 KiB
Markdown
# server
|
|
基于 VUE/NUXT 构建的AI绘图前端 DEMO
|
|
|
|
对内网开放读写接口, 以便多台服务器协作调度, 由于NUXT默认是多线程的, 因此需要构建一个公共队列
|
|
```JSON
|
|
[
|
|
{
|
|
"MODEL": "model-768",
|
|
"UID": "XXXXXXXXXXX",
|
|
"STATUS": "awaiting|produce|end",
|
|
}
|
|
]
|
|
```
|
|
|
|
|
|
|
|
```BASH
|
|
python scripts/txt2img.py --prompt "a little girl professional photograph of an astronaut riding a horse" --ckpt /data/768-v-ema.ckpt --config /data/768-v-ema.yaml --H 768 --W 768 --device cuda --bf16 --n_samples 1 --n_rows 1
|
|
|
|
|
|
stderr: Running command git clone --filter=blob:none --quiet https://github.com/TencentARC/GFPGAN.git /tmp/pip-req-build-1oercg75
|
|
Running command git rev-parse -q --verify 'sha^8d2447a2d918f8eba5a4a01463fd48e45126a379'
|
|
Running command git fetch -q https://github.com/TencentARC/GFPGAN.git 8d2447a2d918f8eba5a4a01463fd48e45126a379
|
|
Running command git checkout -q 8d2447a2d918f8eba5a4a01463fd48e45126a379
|
|
ERROR: Exception:
|
|
Traceback (most recent call last):
|
|
File "/data/stable-diffusion-webui/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 438, in _error_catcher
|
|
yield
|
|
```
|
|
|
|
# Nuxt 3 Minimal Starter
|
|
|
|
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
|
|
|
|
## Setup
|
|
|
|
Make sure to install the dependencies:
|
|
|
|
```bash
|
|
# yarn
|
|
yarn install
|
|
|
|
# npm
|
|
npm install
|
|
|
|
# pnpm
|
|
pnpm install --shamefully-hoist
|
|
```
|
|
|
|
## Development Server
|
|
|
|
Start the development server on http://localhost:3000
|
|
|
|
```bash
|
|
npm run dev
|
|
```
|
|
|
|
## Production
|
|
|
|
Build the application for production:
|
|
|
|
```bash
|
|
npm run build
|
|
```
|
|
|
|
Locally preview production build:
|
|
|
|
```bash
|
|
npm run preview
|
|
```
|
|
|
|
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
|