feat: ComfyUI 默认提示词统一改为「填充遮罩区域的头发,人物增加一点磨皮」

- app.py 接口2/3/5/12/重绘 各 Form 默认值与说明
- hairline/service.py _REDRAW_PROMPT 环境变量缺省值
- hairline/redraw.py _DEFAULT_PROMPT、face_analysis/hairline_grow.py 兜底值
- add_hair.json / 0716add-hair-api.json / 0716add-hair.json / hair_repaint.json
  工作流节点60内置文本(prompt=None 走工作流内置时生效)
- static 测试页、local_test、benchmark 脚本、接口文档同步
- 不动 add_hair2.json(备选工作流,自带独立提示词)
注意:新提示词首次请求会因 CLIP 缓存失效变慢一次,之后恢复
This commit is contained in:
xsl
2026-09-16 00:12:23 +08:00
parent a3587a2561
commit 3f8d90d963
24 changed files with 40 additions and 40 deletions
+1 -1
View File
@@ -1107,7 +1107,7 @@ def generate_hairline_redraw(image_bgr, hairline_id, is_hr=False, seg_model="seg
"hairline_id": hairline_id,
"blend_method": blend_method,
"hairline_push_cm": round(float(hairline_push_cm), 2),
"comfyui_prompt": comfyui_prompt or "填充遮罩区域的头发",
"comfyui_prompt": comfyui_prompt or "填充遮罩区域的头发,人物增加一点磨皮",
"beauty_alpha": beauty_alpha,
"px_per_cm": round(float(px_per_cm), 4),
"mask_pixels": mask_viz["mask_pixels"],