Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Updated:

Question

How to normalize images when converting AI models.


Answer

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

  • IN_MEAN : Parameters for subtractive normalization

    • Values that have an average of 0 (For 0-255, it is 127.5)

    • If the values are different in RGB, enter them separated by commas without spaces. (103.94,116.78,123.68)

  • IN_SCALE : Parameters for division normalization

    • Value that gives a variance of 1 (For 0-255, it is 255)

If normalization is performed with the above parameters specified, processing is performed in the following order. (Standardization)
subtraction (IN_MEAN) ⇒ division (IN_SCALE) ⇒ inference
If you want to normalize using a procedure other than the above, create a preprocessing script and set it to "PREPRO".

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 :

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

    • IN_MEAN:0

    • IN_SCALE:255

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

    • IN_MEAN:127.5

    • IN_SCALE:127.5

  • 前処理スクリプトで正規化を行う場合(変換後モデルに前処理を含めない):

    • IN_MEAN:0

    • IN_SCALE:1

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

詳細は、CVツールに同梱されている「AdamApp_CVtool_UserManual_Vx_xx.pdf」を参照してください。

  • No labels