Files
whale-town-end-v2/tools/character_maker/README.md

25 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# WhaleTown 角色工坊
这是现有角色皮肤生成脚本的本地网页封装。它复用 `scripts/skin_generation/generate_skin_from_prompt.py`,不经过玩家账号、不会消耗注册生成次数。
## 启动
在后端目录执行:
```bash
export NOVAMAILIO_API_KEY="你的密钥"
python3 tools/character_maker/app.py
```
浏览器打开 <http://127.0.0.1:8765>。如生成环境使用独立 Python
```bash
python3 tools/character_maker/app.py --python /path/to/python --port 8765
```
任务和所有中间产物保存在 `generated/character_maker/<任务ID>/`。页面会恢复历史记录,并提供最终 8x4 皮肤表、总览验收图和足部动作检查图。
动作阶段每个必要格都会立即显示单角色生成预览。QA 失败或工具中断时,页面会从最后一次抠图/原始图中恢复候选预览,并提供查看大图和重新生成入口;抠图工具的双栏诊断图只保留在任务目录中,不作为用户预览。
工具只监听 `127.0.0.1`API Key 不会发给浏览器。生成过程会实际调用图片生成服务并产生费用。