-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
46 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,9 @@ | |
|
||
**使用前应该查阅的相关文档或项目** | ||
|
||
* [User Manual](https://github.com/mamoe/mirai/blob/dev/docs/UserManual.md) | ||
* [Permission Command](https://github.com/mamoe/mirai/blob/dev/mirai-console/docs/BuiltInCommands.md#permissioncommand) | ||
* [Chat Command](https://github.com/project-mirai/chat-command) | ||
* [User Manual](https://github.com/mamoe/mirai/blob/dev/docs/UserManual.md) | ||
* [Permission Command](https://github.com/mamoe/mirai/blob/dev/mirai-console/docs/BuiltInCommands.md#permissioncommand) | ||
* [Chat Command](https://github.com/project-mirai/chat-command) | ||
|
||
会自动下载 [EhTagTranslation](https://github.com/EhTagTranslation/Database) 翻译词库 | ||
可以对接 [NaiFu](#NaiFu) 本地搭建 | ||
|
@@ -19,31 +19,40 @@ | |
|
||
## 指令 | ||
|
||
* `/nai <word>` 生成一张图片 | ||
例如 `/nai 连裤袜 双马尾` (只有部分词条会自动翻译) | ||
例如 `/nai swimsuit #seed=12346` (设置种子) | ||
例如 `/nai swimsuit #steps=3` (AI迭代次数) | ||
例如 `/nai "swimsuit, ahegao"` (如果需要以 `,` 分割词条, 请用 `"` 包裹) | ||
例如 `/nai 连裤袜 [图片]` (以图生图, `[图片]` 是指指令消息中包含有图片) | ||
可用的配置项有 | ||
`seed` 种子 | ||
`steps` 迭代次数 | ||
`width` 宽度 | ||
`height` 高度 | ||
`scale` 比例 | ||
`sampler` 采样器 可选值 `k_euler_ancestral`, `k_euler`, `k_lms`, `plms`, `ddim` | ||
`strength` 以图出图中对原图的更改程度 可选值 [0.00, 0.99] | ||
`noise` 以图出图中的噪声 可选值 [0.00, 0.99] | ||
* `/nai-login <mail> <password>` 登录账号 | ||
例如 `/nai-login [email protected] 1919810` | ||
* `/naifu <word>` 生成一张图片 | ||
对接 `naifu`, `naifu` 是基于 novelai 官方 web 端的修改版,所以指令用法 和 `nai` 一致 | ||
* `/nai-reload` 重新载入 `config.yml` 配置文件 | ||
* `/nai <word>` 生成一张图片 官方API需要登录 | ||
例如 `/nai 连裤袜 双马尾` (只有部分词条会自动翻译) | ||
例如 `/nai swimsuit #seed=12346` (设置种子) | ||
例如 `/nai swimsuit #steps=3` (AI迭代次数) | ||
例如 `/nai "swimsuit, ahegao"` (如果需要以 `,` 分割词条, 请用 `"` 包裹) | ||
例如 `/nai 连裤袜 [图片]` (以图生图, `[图片]` 是指指令消息中包含有图片) | ||
可用的配置项有 | ||
`seed` 种子 | ||
`steps` 迭代次数 | ||
`width` 宽度 | ||
`height` 高度 | ||
`scale` 比例 | ||
`sampler` 采样器 可选值 `k_euler_ancestral`, `k_euler`, `k_lms`, `plms`, `ddim` | ||
`strength` 以图出图中对原图的更改程度 可选值 [0.00, 0.99] | ||
`noise` 以图出图中的噪声 可选值 [0.00, 0.99] | ||
|
||
* `/nai-fu <word>` 生成一张图片 自建API需要配置 naifu_api | ||
对接 `naifu`, `naifu` 是基于 novelai 官方 web 端的修改版,所以指令用法 和 `nai` 一致 | ||
|
||
* `/nai-login <mail> <password>` 登录账号 | ||
例如 `/nai-login [email protected] 1919810` | ||
|
||
* `/nai-reload` 重新载入 `config.yml` 配置文件 | ||
|
||
## 配置 | ||
|
||
* `config.yml` 配置文件 包括 `proxy`, `doh`, `ipv6`, `naifu_api` 等配置 | ||
* `ban.txt` 屏蔽的词条,可热编辑,保存后一段时间会自动启用 | ||
* `config.yml` 配置文件 包括 `proxy`, `doh`, `ipv6`, `naifu_api` 等配置 | ||
* `proxy` 代理 | ||
* `doh` DNS | ||
* `ipv6` 是否使用ipv6 | ||
* `naifu_api` 自建 naifu 地址 | ||
* `command_interval` 命令间隔延迟时间 单位毫秒 | ||
|
||
* `ban.txt` 屏蔽的词条,可热编辑,保存后一段时间会自动启用 | ||
|
||
## NaiFu | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters