face,臉部 crop(非全身),cascade 前端需 yolo-face PGIE。cvat #47 門口眼鏡AI生成。參數 100% 照眼鏡實驗,差異=crop 對象是臉。MobileNetV3-L binary | cvat #47 | FACE crop 384×384 | PGIE=yolo-face | 未切 production
cvat #47(face bbox + glasses[yes/no])→ face polygon→bbox 臉部 crop → MobileNetV3 二元。與人形crop的眼鏡版(#43/#45)不同:這版 crop 對象是臉、PGIE 用 face 偵測器。訓練參數與眼鏡實驗完全相同(384、batch64、ep30、lr5e-4、patience8、camaug)。
train 983(戴 554/沒戴 429)· val 124(戴 72/沒戴 52)· ⚠️ 無 Test· pos_weight 0.774
| 指標 | 值 |
|---|---|
| val glasses AP | 0.9790 @ep10 |
| @0.5 accuracy | 0.806 |
| FN(戴→判沒戴) | 1/72(recall 好) |
| FP(沒戴→判戴) | 23/52 @0.5 ⚠️ |
mask/glasses = sigmoid(logit[0])(index 0)。這 model 機率嚴重偏高、傾向判「戴」,thr 0.5 下 FP 爆(23/52):
| thr | FP | FN |
|---|---|---|
| F1-opt 0.971(建議) | ~2(P 0.956) | R 0.903 |
| 0.9 | 14/52 | 3/72 |
| 0.5(不建議) | 23/52 | 1/72 |
demo 設 thr 0.97。⚠️ FP 傾向頑固(高門檻也壓不太下)→ 需真實料/test 驗,懷疑 AI 生成的「沒戴」臉有 artifact。
ckpt: R2 glasses_face_v20260731/best.pt。demo: glasses_face(yolo-face PGIE, thr 0.97, 實驗)。