ailia-ai / ailia-ai/ailia-models
Refinement of face cropping for age and gender estimation
- Langage dominant
- Python
- Étoiles
- 2.4k
- Forks
- 365
- Merge moyen
- 3 j 17 h
- PR mergées (30 j)
- 13
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 — 実装は一致
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Start by locating the retail-0013 crop implementation and compare it with open_model_zoo/demos/interactive_face_detection_demo/cpp/detectors.cpp. Verify the square, 1.2x, centered crop and 62×62 BGR preprocessing against the model-card constraints. Done means the ailia implementation follows the stated official crop behavior; the issue is closed and already assigned.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- computer-vision, machine-learning
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Active
- Clarté
- Plutôt claire
- Accessibilité débutants
- 25/100