Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Updated:

Question

How to normalize images when converting AI models.

...

Answer

Can be set with IN_MEAN and IN_SCALE in setting.conf file.

...

Info

The preprocessing specified as "PREPRO" is not included in the model file. If you incorporate the model into your app, implement preprocessing on the app side as well.

Setting Example :

  • When normalizing 0 - 255 を 0255 to 0.0 - 1.0 に正規化する場合:0 :

    • IN_MEAN:0MEAN : 0

    • IN_SCALE:255SCALE : 255

  • When normalizing 0 - 255 を 255 to -1.0 - 1.0 に正規化する場合:0 :

    • IN_MEAN:127MEAN : 127.5

    • IN_SCALE:127SCALE : 127.5

  • 前処理スクリプトで正規化を行う場合(変換後モデルに前処理を含めない):When normalization is performed in the preprocessing script (Not include preprocessing in post-conversion model):

    • IN_MEAN:0MEAN : 0

    • IN_SCALE:1PREPRO:前処理スクリプトパスSCALE : 1

    • PREPRO : Preprocessing script path

Info

詳細は、CVツールに同梱されている「AdamAppFor details, refer to "AdamApp_CVtool_UserManual_Vx_xx.pdf」を参照してください。pdf" included with the CV tool.