- test_interface2.html: 新增「重绘分辨率」下拉(默认896/1024/768/640/不缩图0), 仅 female 生效,append redraw_max_side 字段;male 时自动隐藏 - 新增分辨率对比测试工具 (image/compare_test, image/res_test): - batch_test.py: 串行批量测试脚本,支持断点续跑 - gen_report.py: 生成自包含 HTML 对比报告(速度色阶+缩略图+点击放大) - 两轮测试结果: - v1: 4图×5发型×2档=40次 (compare_test) - v2: 5图×3发型×5档=75次 (res_test) - 结论: 大图(长边>1600)原图直送比896档慢~3倍; 中小图各档差异小 - .gitignore: 忽略测试结果图/原图副本/运行日志(out/, *.log, progress.json)
78 lines
1.8 KiB
Plaintext
78 lines
1.8 KiB
Plaintext
venv/
|
||
__pycache__/
|
||
*.pyc
|
||
.env
|
||
|
||
|
||
# 网关配置(含密码,不入 git)
|
||
gateway/config.json
|
||
|
||
# worker 配置(含鉴权密码,不入 git)
|
||
worker_config.json
|
||
|
||
# ComfyUI Basic Auth 密码(不入 git)
|
||
password.txt
|
||
|
||
# worker 运行期文件(PID / 日志)
|
||
worker.pid
|
||
worker.log
|
||
|
||
# 请求日志(运行时生成,不入 git)
|
||
gateway/request_log.jsonl
|
||
gateway/request_log.jsonl.1
|
||
|
||
# SegFormer 模型权重(~323MB,体积过大,不入 git,见 OFFLINE_ASSETS.md)
|
||
hairline/models/face-parsing/model.safetensors
|
||
|
||
# 生成的标注图、测试输出
|
||
static/annotations/*
|
||
!static/annotations/.gitkeep
|
||
tests/output/
|
||
|
||
# 本地临时遮罩测试页(不入 git)
|
||
test_local.py
|
||
|
||
# 运行期日志 / uvicorn 日志(不入 git)
|
||
log/
|
||
uvicorn.log
|
||
uvicorn*.log
|
||
|
||
# ZCode 工具目录(不入 git)
|
||
.zcode/
|
||
|
||
# 临时响应文件(不入 git)
|
||
_grow*_resp.json
|
||
|
||
# 测试素材图(体积大,不入 git)
|
||
image/test/
|
||
|
||
# 批量报告输出(生成图+原图,体积大,不入 git)
|
||
static/report_hairline_v2/
|
||
static/report_hairline_v2.zip
|
||
|
||
# local_test 运行期日志 / pid(不入 git)
|
||
local_test/hair_service.log
|
||
local_test/hair_service.pid
|
||
|
||
# benchmark 原始输出(含结果图+原图,体积大,不入 git)
|
||
benchmark_out/
|
||
|
||
# benchmark 部署的 HTML 报告(图片 base64 内嵌,体积大,不入 git)
|
||
static/hairstyle_thumbs/
|
||
|
||
# 网关运行期日志(不入 git)
|
||
gateway.log
|
||
|
||
# 工作流备份文件(不入 git)
|
||
*.json.bak.*
|
||
|
||
# 分辨率对比测试产物(out/ 下结果图+原图副本+日志,体积大,不入 git)
|
||
# 仅忽略 out/ 与运行期文件;测试脚本与 HTML 报告仍入库
|
||
image/compare_test/out/
|
||
image/res_test/out/
|
||
image/compare_test/progress.json
|
||
image/res_test/progress.json
|
||
image/compare_test/batch_test.log
|
||
image/res_test/batch_test.log
|
||
image/compare_test/http.log
|