ailia-ai / ailia-ai/ailia-models

Refinement of face cropping for age and gender estimation

Open
#1,916 3 comments 0 reactions 1 assignee Claimed by @kyakuno View on GitHub
Dominant language
Python
Stars
2.4k
Forks
365
Avg merge
23h 2m
Merged PRs (30d)
11

Description

retail-0013のクロップ方法を変更する。

OpenVINO の公式リポジトリ。
open_model_zoo/demos/interactive_face_detection_demo/cpp/detectors.cpp:

```
// Make square and enlarge face bounding box for more robust operation of face analytics networks
int max_of_sizes = std::max(bb_width, bb_height);
int bb_new_width = bb_enlarge_coefficient * max_of_sizes; // default 1.2
r.location.x = bb_center_x - floor(bb_dx_coefficient * bb_new_width / 2); // dx default 1.0
```

OpenVINO 公式の推奨クロップは
「顔枠を max(w,h) で正方形化 → 1.2倍に拡大 → 中心はそのまま(シフトなし)→ 62×62 にリサイズ、BGR、正規化なし」
である。

ailia 版の 1.5倍+上方向 1/8 シフトは ailia 独自で、公式とは違う。

モデルカードからの補足:

対象年齢は [18, 75]。「子供は学習データに含まれないため適用外」と明記
最小顔幅 62px、面内回転 ±45°、ヨー/ピッチ ±45°
参考精度: 平均年齢誤差 6.99歳、性別精度 95.80%(内部検証セット 約2万人)
出力 prob は [0=female, 1=male]、fc3_a は age/100 — 実装は一致

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.