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.

...

  • 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:除算正規化を行う場合のパラメータ

    分散が1となるような値(0-255の場合、255)

    SCALE : Parameters for division normalization

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

上記のパラメータを指定して正規化を行った場合、
  減算(IN_MEAN) ⇒ 除算(IN_SCALE)⇒ 推論
の順で処理が行われます。(標準化)

...