- 从head3d复制发际线检测管线到 hairline/ 包:MediaPipe Tasks + SegFormer分割 + 17锚点射线检测 + 502点mesh(face_ext.obj)+UV - 复制模型:face_landmarker.task(3.7MB)、SegFormer config/preprocessor (model.safetensors 340MB 单独下载中) - 新增 docs/接口2-C端生发-技术实现方案.md:第一步=发际线曲线叠加预览图, 新增gender必填参数,按性别贴图数量输出(female5/male4),hairline_type英文key, 服务端cv2逐三角形warp渲染器(head3d只有浏览器端Three.js渲染) - 接口文档.md 接口2章节同步:gender参数、输出语义、错误码说明 - hairline_texture/ 9张发际线贴图入库
24 lines
374 B
JSON
24 lines
374 B
JSON
{
|
|
"do_normalize": true,
|
|
"do_reduce_labels": false,
|
|
"do_rescale": true,
|
|
"do_resize": true,
|
|
"image_mean": [
|
|
0.485,
|
|
0.456,
|
|
0.406
|
|
],
|
|
"image_processor_type": "SegformerFeatureExtractor",
|
|
"image_std": [
|
|
0.229,
|
|
0.224,
|
|
0.225
|
|
],
|
|
"resample": 2,
|
|
"rescale_factor": 0.00392156862745098,
|
|
"size": {
|
|
"height": 512,
|
|
"width": 512
|
|
}
|
|
}
|