后端 generate_hairline_redraw 跳过内置 Flux-2 重绘,改为产出 final(接缝融合基底) + 纯红遮罩 PNG(redraw_band_mask_base64,遮罩区=(255,0,0,255)、其余全透明)。 接口2 female(generate_grow_results_swap) 取 final+遮罩后在后端调 local_test (0716add-hair.json 工作流) 完成重绘,结果作为生发图返回;male 分支不变。 测试页 test_interface12.html / test_interface12_final.html 改为两阶段: 先生成 final+纯红遮罩,再前端调 local_test 重绘并展示;color_match 默认不勾选。 local_test/app.py 加 CORS 头(OPTIONS 预检),支持浏览器跨域直连。
56 lines
1.1 KiB
Plaintext
56 lines
1.1 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
|