私的AI研究会 > OpenVINO10

Intel® OpenVINO™ -年齢性別推定モデル-

※ 最終更新:2021/02/10 

Intel® OpenVINO™ で学習済み顔検出・年齢性別推定モデル

 学習済みモデルファイルのアーカイブからディープラーニング推論を実習する(その3)。

お手本のサイト

使用環境

使用する学習済みモデル

modelnput name: shapeoutput name: shape
face-detection-adas-0001'data': [1, 3, 384, 672]An input image in the format [BxCxHxW]Expected color order is BGR.'detection_out':[1, 1, 200, 7]
format: [image_id, label, conf, x_min, y_min, x_max, y_max]
age-gender-recognition-retail-0013"data": [1, 3, 62, 62]"age_conv3": [1, 1, 1, 1]
Estimated age divided by 100.
"prob": [1, 2, 1, 1]
Softmax output across 2 type classes [female, male]
emotion-recognition-retail-0003"data": [1, 3, 64, 64]"prob_emotion": [1, 5, 1, 1]
Softmax output across five emotions ('neutral', 'happy', 'sad', 'surprise', 'anger').
head-pose-estimation-adas-0001"data": [1, 3, 60, 60](Inference Engine format)
angle_y_fc:[1, 1]
angle_p_fc:[1, 1]
angle_r_fc: [1, 1]Supported ranges YAW [-90,90], PITCH [-70,70], ROLL [-70,70]
facial-landmarks-35-adas-0002"data" shape:[1, 3, 60, 60]"align_fc3": [1, 70]
70 floating point values for 35 landmarks' normed coordinates in the form (x0, y0, x1, y1, ..., x34, y34).

事前準備

お手本サイトで使っているモジュールなど

顔検出・分析モデル

基本画像の表示

 画像はお手本と同じ Microsoftの How-Old.net のものでテスト。

顔検出

 学習済みモデル「face-detection-adas-0001」を使って、顔検出をおこなう。
 OpenVINO™ Toolkit のバージョンが変わっているのでモジュールの読み込みなどの変更が必要。

年齢/性別推定

 学習済みモデル「age-gender-recognition-retail-0013」を使って、年齢/性別推定をおこなう。
 認識できる年齢の幅は 18 - 75 で、training set に子供は含んでいないらしい。

リアルタイム年齢/性別推定

感情認識

 学習済みモデル「emotions-recognition-retail-0003」を使って、感情認識をおこなう。
 識別できる感情は5種類。「neutral」「happy」「sad」「surprise」「anger」

リアルタイム感情認識

顔の特徴点抽出

 学習済みモデル「emotions-recognition-retail-0003」を使って、顔の特徴点抽出をおこなう。
 学習済みモデルのファイル名がお手本から変更になっている。
  「facial-landmarks-35-adas-0001」→「facial-landmarks-35-adas-0002」

リアルタイム顔の特徴点抽出

頭のポーズの推定

 学習済みモデル「head-pose-estimation-adas-0001」を使って、頭のポーズの推定をおこなう。

リアルタイム頭のポーズの推定

プログラムの考察など

ワーニングエラーについて

classification3.py:15: DeprecationWarning: 'inputs' property of IENetwork class is deprecated. To access DataPtrs user need to use 'input_data' property of InputInfoPtr objects which can be accessed by 'input_info' property.

更新履歴

 

参考資料

 

Last-modified: 2021-02-11 (木) 09:52:02