koishi-plugin-p-draw 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +117 -93
- package/package.json +1 -1
- package/readme.md +105 -23
package/index.js
CHANGED
|
@@ -33,99 +33,123 @@ exports.usage = `
|
|
|
33
33
|
`;
|
|
34
34
|
|
|
35
35
|
const { zhCN } = require('./lib/i18n')
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
Schema.
|
|
56
|
-
Schema.
|
|
57
|
-
Schema.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
samplerName: Schema.string().
|
|
61
|
-
scheduler: Schema.string().
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}).
|
|
36
|
+
// 配置分组:用 Schema.intersect 让控制台按「可折叠小节」渲染,
|
|
37
|
+
// 同时解析结果仍是扁平对象 —— 旧的 koishi.yml 键名不变,无需迁移。
|
|
38
|
+
exports.Config = Schema.intersect([
|
|
39
|
+
// ---------------- 常用(默认展开) ----------------
|
|
40
|
+
Schema.object({
|
|
41
|
+
comfyuiBaseUrl: Schema.string().default('http://127.0.0.1:8188').description('ComfyUI 地址'),
|
|
42
|
+
timeout: Schema.number().default(300).description('单次生成超时(秒)'),
|
|
43
|
+
pollInterval: Schema.number().default(2).description('生成状态查询间隔(秒)'),
|
|
44
|
+
}).description('① ComfyUI 连接'),
|
|
45
|
+
|
|
46
|
+
Schema.object({
|
|
47
|
+
unetName: Schema.string().default('anima-aesthetic-v1.1.safetensors').description('主模型文件名,需与 ComfyUI models/diffusion_models 下的文件名完全一致;8G 显存可填 .gguf 版(插件自动改用 UnetLoaderGGUF)'),
|
|
48
|
+
useGgufUnet: Schema.union([
|
|
49
|
+
Schema.const('auto').description('按文件名自动判断(.gguf → UnetLoaderGGUF)'),
|
|
50
|
+
Schema.const('true').description('强制 UnetLoaderGGUF(需安装 ComfyUI-GGUF)'),
|
|
51
|
+
Schema.const('false').description('强制原生 UNETLoader'),
|
|
52
|
+
]).default('auto').description('主模型加载方式'),
|
|
53
|
+
clipName: Schema.string().default('qwen_3_06b_base.safetensors').description('文本编码器文件名(ComfyUI models/text_encoders)'),
|
|
54
|
+
vaeName: Schema.string().default('qwen_image_vae.safetensors').description('VAE 文件名(ComfyUI models/vae)'),
|
|
55
|
+
width: Schema.number().default(832).description('默认宽度'),
|
|
56
|
+
height: Schema.number().default(1216).description('默认高度'),
|
|
57
|
+
allowedSizes: Schema.array(Schema.string()).default(['832x1216', '896x1152', '1024x1024', '1152x896', '1216x832', '768x1344', '1344x768', '1024x1536']).description('可用尺寸列表(宽x高)'),
|
|
58
|
+
steps: Schema.number().default(30).description('采样步数'),
|
|
59
|
+
cfg: Schema.number().default(4.0).description('CFG 强度(Aesthetic 1.1 推荐 4,用 3 也常更好)'),
|
|
60
|
+
samplerName: Schema.string().default('er_sde').description('采样器'),
|
|
61
|
+
scheduler: Schema.string().default('simple').description('调度器'),
|
|
62
|
+
}).description('② 模型与采样参数'),
|
|
63
|
+
|
|
64
|
+
Schema.object({
|
|
65
|
+
qualityPrefix: Schema.string().default('').description('质量词前缀(Aesthetic 1.1 建议留空;Base 模型可填 masterpiece, best quality, score_7)'),
|
|
66
|
+
negativePrompt: Schema.string().default('worst quality, low quality, score_1, score_2, score_3, artist name, blurry, jpeg artifacts').description('负面提示词'),
|
|
67
|
+
styleTags: Schema.string().default('').description('画风 tags'),
|
|
68
|
+
defaultArtistTags: Schema.string().default('').description('备用画师 tags'),
|
|
69
|
+
activeArtistPreset: Schema.string().default('').description('启用的画师组名称'),
|
|
70
|
+
artistPresets: Schema.array(Schema.string()).default([]).description('画师组(格式:名称=tags)'),
|
|
71
|
+
fixedCharacters: Schema.array(Schema.string()).default([]).description('固定角色(格式:角色名=tags;仅兼容旧配置,运行时以数据库为准)'),
|
|
72
|
+
}).description('③ 提示词与画师'),
|
|
73
|
+
|
|
74
|
+
Schema.object({
|
|
75
|
+
queueEnabled: Schema.boolean().default(true).description('启用生成队列(逐张顺序执行)'),
|
|
76
|
+
queueMaxRequests: Schema.number().default(5).description('队列最大任务数(0 表示不限制)'),
|
|
77
|
+
batchMax: Schema.number().default(4).description('单次指令最多生成的张数'),
|
|
78
|
+
}).description('④ 队列与批量'),
|
|
79
|
+
|
|
80
|
+
Schema.object({
|
|
81
|
+
price: Schema.number().default(500).description('一张图消耗的 P 点'),
|
|
82
|
+
multiPrice: Schema.number().default(900).description('多人指令单张消耗的 P 点'),
|
|
83
|
+
couponPrice: Schema.number().default(3000).description('提示词优化券单价(可被 data/p-shop.json 覆盖)'),
|
|
84
|
+
couponAskTimeout: Schema.number().default(60).description('优化券确认等待时间(秒)'),
|
|
85
|
+
adminUsers: Schema.array(Schema.string()).default([]).description('免 P 点管理员用户 ID'),
|
|
86
|
+
}).description('⑤ P 点与优化券'),
|
|
87
|
+
|
|
88
|
+
Schema.object({
|
|
89
|
+
adminOnly: Schema.boolean().default(false).description('仅管理员可用'),
|
|
90
|
+
allowedUserIds: Schema.array(Schema.string()).default([]).description('用户白名单(留空不限制)'),
|
|
91
|
+
blockedUserIds: Schema.array(Schema.string()).default([]).description('用户黑名单(优先于白名单)'),
|
|
92
|
+
allowedGroupIds: Schema.array(Schema.string()).default([]).description('群白名单(留空不限制)'),
|
|
93
|
+
blockedGroupIds: Schema.array(Schema.string()).default([]).description('群黑名单(优先于白名单)'),
|
|
94
|
+
outputLogs: Schema.boolean().default(true).description('输出详细日志'),
|
|
95
|
+
}).description('⑥ 权限与日志'),
|
|
96
|
+
|
|
97
|
+
// ---------------- 进阶(默认折叠) ----------------
|
|
98
|
+
Schema.object({
|
|
99
|
+
customWorkflowEnabled: Schema.boolean().default(false).description('使用自定义 ComfyUI 工作流 JSON'),
|
|
100
|
+
customWorkflowPath: Schema.string().default('').description('工作流 JSON 路径(相对 Koishi 运行目录,如 data/p-draw/workflows/anima-aesthetic-v1.1.json)'),
|
|
101
|
+
skipQualityPrefixForCustomWorkflow: Schema.boolean().default(true).description('启用自定义工作流时跳过质量前缀注入'),
|
|
102
|
+
customWorkflowOverrideParameters: Schema.boolean().default(false).description('用插件参数覆盖工作流内的采样参数'),
|
|
103
|
+
customWorkflowReloadOnChange: Schema.boolean().default(true).description('工作流文件变化时自动重载(无需重启)'),
|
|
104
|
+
positivePromptNodeId: Schema.string().default('').description('正面提示词节点 ID(留空自动识别;示例 6,以实际 JSON 为准)'),
|
|
105
|
+
negativePromptNodeId: Schema.string().default('').description('负面提示词节点 ID(留空自动识别;示例 7)'),
|
|
106
|
+
resolutionNodeId: Schema.string().default('').description('尺寸节点 ID(EmptyLatentImage,可留空;示例 5)'),
|
|
107
|
+
seedNodeId: Schema.string().default('').description('种子节点 ID(KSampler,可留空;示例 3)'),
|
|
108
|
+
stepsNodeId: Schema.string().default('').description('步数节点 ID(KSampler,可留空;示例 3)'),
|
|
109
|
+
}).description('⑦ 自定义工作流').collapse(),
|
|
110
|
+
|
|
111
|
+
Schema.object({
|
|
112
|
+
modelParams: Schema.dict(Schema.object({
|
|
113
|
+
samplerName: Schema.string().description('采样器'),
|
|
114
|
+
scheduler: Schema.string().description('调度器'),
|
|
115
|
+
steps: Schema.number().description('采样步数'),
|
|
116
|
+
cfg: Schema.number().description('CFG 强度'),
|
|
117
|
+
width: Schema.number().description('默认宽度'),
|
|
118
|
+
height: Schema.number().description('默认高度'),
|
|
119
|
+
}).description('该模型的参数覆盖')).default({}).description('按模型覆盖参数:key=模型文件名,value 只填要覆盖的字段。优先级:命令级 --steps/--cfg > 本节 > 全局配置'),
|
|
120
|
+
}).description('⑧ 模型独立参数覆盖').collapse(),
|
|
121
|
+
|
|
122
|
+
Schema.object({
|
|
123
|
+
promptOptimizeEnabled: Schema.boolean().default(false).description('启用自然语言优化(需配置下面的 LLM 接口)'),
|
|
124
|
+
llmBaseUrl: Schema.string().default('').description('LLM 接口地址(OpenAI 兼容,如 https://api.deepseek.com/v1)'),
|
|
125
|
+
llmApiKey: Schema.string().role('secret').default('').description('LLM API Key'),
|
|
126
|
+
llmModel: Schema.string().default('').description('LLM 模型名(留空则不优化)'),
|
|
127
|
+
llmMaxTokens: Schema.number().default(1000).description('LLM 输出上限'),
|
|
128
|
+
promptOptimizeTemplate: Schema.string().description('优化模板(支持 {theme} {search_block} {character_rule} 占位符)').default('你是为 Anima 图像生成模型编写正面提示词的 AI 画师。\n\n请根据用户的原始要求设计一幅完整、协调、具有视觉吸引力的画面,并将结果输出为英文 Danbooru-style tags。\n\n输出要求:\n- 只输出一行英文 tags,使用英文逗号分隔。\n- 不要输出解释、分析、标题、编号、Markdown、代码块或中文。\n- 不要输出 masterpiece、best quality、score 等质量前缀。\n- 不要输出画师 tags;质量词和画师组会由程序另行拼接。\n- 尽量使用模型容易理解的可见画面描述。\n- 保持用户明确指定的角色、主体、人数、关键服装、动作、表情和道具。\n- 除上述明确要求外,可以自由决定服装细节、姿态、构图、镜头、背景、环境、光影、色彩、氛围、前景和特效。\n- 以最终图像协调、精致、有表现力和好看为优先,不需要机械追求固定 Tag 数量。\n- 不要为了数量重复同义词;画面已经完整时即可停止。\n- 请自行解决明显冲突,直接输出你认为最适合生成最终画面的版本。\n\n角色和动态上下文:\n{character_rule}\n{search_block}\n\n用户原始要求:\n{theme}'),
|
|
129
|
+
}).description('⑨ 提示词优化 / LLM').collapse(),
|
|
130
|
+
|
|
131
|
+
Schema.object({
|
|
132
|
+
webSearchEnabled: Schema.boolean().default(false).description('启用联网搜索(指令里写「联网/搜索/查一下」触发)'),
|
|
133
|
+
tavilyApiKey: Schema.string().role('secret').default('').description('Tavily API Key(https://tavily.com)'),
|
|
134
|
+
webSearchMaxResults: Schema.number().default(5).description('搜索结果数量'),
|
|
135
|
+
webSearchDepth: Schema.string().default('basic').description('搜索深度(basic / advanced)'),
|
|
136
|
+
webSearchQueryTemplate: Schema.string().default('{prompt} 角色 外观 立绘 服装 配色 武器 官方图 official art character design outfit appearance wiki fandom').description('搜索词模板({prompt} 代表用户需求)'),
|
|
137
|
+
}).description('⑩ 联网搜索').collapse(),
|
|
138
|
+
|
|
139
|
+
Schema.object({
|
|
140
|
+
multiVerifyEnabled: Schema.boolean().default(true).description('多人图生成后启用视觉校验'),
|
|
141
|
+
multiVerifyPassScore: Schema.number().default(6).description('校验合格分数(0-10)'),
|
|
142
|
+
multiCandidateCount: Schema.number().default(2).description('候选采样数量(最多重试 候选数-1 次)'),
|
|
143
|
+
multiSendDegradedCandidate: Schema.boolean().default(true).description('全部候选不达标时仍发送最优候选'),
|
|
144
|
+
verifyLlmBaseUrl: Schema.string().default('').description('视觉校验接口地址(OpenAI 兼容;留空跳过校验)'),
|
|
145
|
+
verifyLlmApiKey: Schema.string().role('secret').default('').description('视觉校验 API Key'),
|
|
146
|
+
verifyLlmModel: Schema.string().default('').description('视觉校验模型名(需支持图片输入,如 qwen-vl)'),
|
|
147
|
+
}).description('⑪ 多人视觉校验').collapse(),
|
|
148
|
+
|
|
149
|
+
Schema.object({
|
|
150
|
+
workflow: Schema.string().default('anima_t2i').description('旧版工作流标识,仅用于状态/诊断显示,内置工作流固定 anima_t2i'),
|
|
151
|
+
}).description('⑫ 兼容项(旧版,可忽略)').collapse(),
|
|
152
|
+
]).i18n({
|
|
129
153
|
'zh-CN': zhCN,
|
|
130
154
|
})
|
|
131
155
|
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -64,35 +64,117 @@ plugins:
|
|
|
64
64
|
|
|
65
65
|
## 配置说明
|
|
66
66
|
|
|
67
|
+
控制台里配置分成 **12 个可折叠小节**:①–⑥ 常用项默认展开,⑦–⑫ 进阶项默认折叠。`koishi.yml` 里的键仍然是**扁平**的(见文末示例),分组只影响界面显示,旧配置无需迁移。
|
|
68
|
+
|
|
69
|
+
### ① ComfyUI 连接
|
|
70
|
+
|
|
67
71
|
| 项 | 说明 |
|
|
68
72
|
|----|------|
|
|
69
73
|
| `comfyuiBaseUrl` | ComfyUI API 地址(默认 `http://127.0.0.1:8188`) |
|
|
70
|
-
| `
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
|
75
|
-
|
|
76
|
-
| `
|
|
77
|
-
| `
|
|
74
|
+
| `timeout` / `pollInterval` | 单次生成超时(秒,默认 300)、状态查询间隔(秒,默认 2) |
|
|
75
|
+
|
|
76
|
+
### ② 模型与采样参数
|
|
77
|
+
|
|
78
|
+
| 项 | 说明 |
|
|
79
|
+
|----|------|
|
|
80
|
+
| `unetName` / `clipName` / `vaeName` | 模型文件名,需与 ComfyUI 下拉框中的文件名完全一致 |
|
|
81
|
+
| `useGgufUnet` | `auto`(按后缀判断,默认)/ `true`(强制 `UnetLoaderGGUF`,需装 ComfyUI-GGUF)/ `false`(强制 `UNETLoader`) |
|
|
78
82
|
| `width` / `height` / `allowedSizes` | 默认尺寸与可用尺寸列表 |
|
|
79
|
-
| `steps` / `cfg` / `samplerName` / `scheduler` |
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
|
84
|
-
|
|
85
|
-
| `
|
|
86
|
-
| `
|
|
87
|
-
| `
|
|
88
|
-
| `
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
|
93
|
-
|
|
83
|
+
| `steps` / `cfg` / `samplerName` / `scheduler` | 采样参数(Aesthetic 1.1 推荐 `30 / 4.0 / er_sde / simple`) |
|
|
84
|
+
|
|
85
|
+
### ③ 提示词与画师
|
|
86
|
+
|
|
87
|
+
| 项 | 说明 |
|
|
88
|
+
|----|------|
|
|
89
|
+
| `qualityPrefix` / `negativePrompt` | 质量词前缀与负面词。默认 `qualityPrefix` 为空(Aesthetic 1.1 不需要质量标签),`negativePrompt` 为 Aesthetic 推荐值;从 Base 模型迁移时再把前缀填回 `masterpiece, best quality, score_7` |
|
|
90
|
+
| `styleTags` / `defaultArtistTags` | 画风 tags、备用画师 tags |
|
|
91
|
+
| `activeArtistPreset` / `artistPresets` | 启用的画师组名称与画师组列表 |
|
|
92
|
+
| `fixedCharacters` | 固定角色(仅兼容旧配置,运行时以数据库为准) |
|
|
93
|
+
|
|
94
|
+
### ④ 队列与批量
|
|
95
|
+
|
|
96
|
+
| 项 | 说明 |
|
|
97
|
+
|----|------|
|
|
98
|
+
| `queueEnabled` / `queueMaxRequests` | 生成队列开关与上限(0 表示不限制) |
|
|
99
|
+
| `batchMax` | 单次指令最多生成的张数(`x3` / `3张` / `--数量 3`),默认 4 |
|
|
100
|
+
|
|
101
|
+
### ⑤ P 点与优化券
|
|
102
|
+
|
|
103
|
+
| 项 | 说明 |
|
|
104
|
+
|----|------|
|
|
105
|
+
| `price` / `multiPrice` | 单张 / 多人单张消耗的 P 点 |
|
|
106
|
+
| `couponPrice` / `couponAskTimeout` | 提示词优化券单价(默认 3000,可被 `data/p-shop.json` 覆盖)与确认等待时间(秒) |
|
|
107
|
+
| `adminUsers` | 免 P 点管理员用户 ID |
|
|
108
|
+
|
|
109
|
+
### ⑥ 权限与日志
|
|
110
|
+
|
|
111
|
+
| 项 | 说明 |
|
|
112
|
+
|----|------|
|
|
113
|
+
| `adminOnly` | 仅管理员可用 |
|
|
114
|
+
| `allowedUserIds` / `blockedUserIds` | 用户白名单 / 黑名单(黑名单优先) |
|
|
115
|
+
| `allowedGroupIds` / `blockedGroupIds` | 群白名单 / 黑名单(黑名单优先) |
|
|
94
116
|
| `outputLogs` | 是否输出详细日志 |
|
|
95
117
|
|
|
118
|
+
### ⑦ 自定义工作流(折叠)
|
|
119
|
+
|
|
120
|
+
| 项 | 说明 |
|
|
121
|
+
|----|------|
|
|
122
|
+
| `customWorkflowEnabled` / `customWorkflowPath` | 启用自定义工作流 JSON;路径相对 Koishi 运行目录解析 |
|
|
123
|
+
| `skipQualityPrefixForCustomWorkflow` | 启用自定义工作流时跳过质量前缀注入(默认 `true`) |
|
|
124
|
+
| `customWorkflowOverrideParameters` | 用插件参数覆盖工作流内的采样参数 |
|
|
125
|
+
| `customWorkflowReloadOnChange` | 工作流文件变化时自动重载,无需重启(默认 `true`) |
|
|
126
|
+
| `positivePromptNodeId` / `negativePromptNodeId` | 正/负面提示词节点 ID;留空自动识别 |
|
|
127
|
+
| `resolutionNodeId` / `seedNodeId` / `stepsNodeId` | 尺寸 / 种子 / 步数节点 ID;可留空(留空则按节点类型覆盖) |
|
|
128
|
+
|
|
129
|
+
### ⑧ 模型独立参数覆盖(折叠)
|
|
130
|
+
|
|
131
|
+
| 项 | 说明 |
|
|
132
|
+
|----|------|
|
|
133
|
+
| `modelParams` | 字典:`key`=模型文件名,`value` 只填要覆盖的 `samplerName` / `scheduler` / `steps` / `cfg` / `width` / `height`。匹配不区分大小写与 `-` `_`。优先级:命令级 `--steps`/`--cfg` > 本节 > 全局配置 |
|
|
134
|
+
|
|
135
|
+
### ⑨ 提示词优化 / LLM(折叠)
|
|
136
|
+
|
|
137
|
+
| 项 | 说明 |
|
|
138
|
+
|----|------|
|
|
139
|
+
| `promptOptimizeEnabled` / `llmBaseUrl` / `llmApiKey` / `llmModel` | 自然语言优化(OpenAI 兼容接口) |
|
|
140
|
+
| `llmMaxTokens` | LLM 输出上限 |
|
|
141
|
+
| `promptOptimizeTemplate` | 优化模板(支持 `{theme}` `{search_block}` `{character_rule}` 占位符) |
|
|
142
|
+
|
|
143
|
+
### ⑩ 联网搜索(折叠)
|
|
144
|
+
|
|
145
|
+
| 项 | 说明 |
|
|
146
|
+
|----|------|
|
|
147
|
+
| `webSearchEnabled` / `tavilyApiKey` | 联网搜索开关与 Tavily Key |
|
|
148
|
+
| `webSearchMaxResults` / `webSearchDepth` / `webSearchQueryTemplate` | 结果数量、搜索深度、搜索词模板 |
|
|
149
|
+
|
|
150
|
+
### ⑪ 多人视觉校验(折叠)
|
|
151
|
+
|
|
152
|
+
| 项 | 说明 |
|
|
153
|
+
|----|------|
|
|
154
|
+
| `multiVerifyEnabled` / `multiVerifyPassScore` | 校验开关与合格分数(0-10) |
|
|
155
|
+
| `multiCandidateCount` / `multiSendDegradedCandidate` | 候选采样数与全部不达标时是否仍发送最优候选 |
|
|
156
|
+
| `verifyLlmBaseUrl` / `verifyLlmApiKey` / `verifyLlmModel` | 视觉模型(需支持图片输入;留空则跳过校验) |
|
|
157
|
+
|
|
158
|
+
### ⑫ 兼容项(折叠)
|
|
159
|
+
|
|
160
|
+
| 项 | 说明 |
|
|
161
|
+
|----|------|
|
|
162
|
+
| `workflow` | 旧版工作流标识,仅用于状态/诊断显示,内置工作流固定 `anima_t2i` |
|
|
163
|
+
|
|
164
|
+
`koishi.yml` 里仍是扁平写法(分组不影响它):
|
|
165
|
+
|
|
166
|
+
```yaml
|
|
167
|
+
p-draw:0z81el:
|
|
168
|
+
comfyuiBaseUrl: http://127.0.0.1:8188
|
|
169
|
+
unetName: anima-aesthetic-v1.1.safetensors
|
|
170
|
+
qualityPrefix: ''
|
|
171
|
+
cfg: 4.0
|
|
172
|
+
steps: 30
|
|
173
|
+
# 进阶项同样扁平,例如:
|
|
174
|
+
# customWorkflowEnabled: true
|
|
175
|
+
# customWorkflowPath: data/p-draw/workflows/anima-aesthetic-v1.1.json
|
|
176
|
+
```
|
|
177
|
+
|
|
96
178
|
## 工作流对接:Anima Aesthetic 1.1
|
|
97
179
|
|
|
98
180
|
### 1. 模型文件放置
|