Versions Compared

Key

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

...

Please refer here for the environment construction procedure.

...

Conversion

...

Convert the model.

Please change the parameter "setting.conf" of the argument according to the model to be converted.

...

  • NET_NAME: The name of network

    • Any name can be set.

  • IS_SSD: Set 1, if target model uses SSD

  • PB_DIR: Path to directory which includes frozen .pb files

    • All .pb files under the directory are converted.

  • IMAGE_DIR: Path to directory which that includes image files for optimizing quantization

    • Please put the directory image files for training. Recommende Recommended number of image files is 100 to 200.

    • Available image file format is what OpenCV can handle, for example, JPEG, PNG and so on.

    • Any resolution is available.

  • OUTPUT_DIR: Path to directory to which the converted data will be putis placed

  • PARSER_OPTION: Quantization mode

    • Select from FIX8/FIX16/MIX (FIX8/FIX16 mixed).

  • IN_DATA_FORMAT: Format of input data for target model (NHWC or NCHW)

  • IN_DATA_CHANNEL: Number of input image channel for target model

  • N_DATA_WIDTH: Width of input image for target model

  • IN_DATA_HEIGHT: Height of input image for target model

  • IN_MEAN: Normalization parameter (mean) of input image

    • In case of setting by numerical value, do not put Please refrain from using space between “,” as followingshown below if using numerical value.
      IN_MEAN=127.5,127.5,127.5

  • IN_SCALE: Normalization parameter (scale) of input image

    • In case of setting different value for each channel, split values by “,”. Do not put space between “,”Please refrain from using space between “,” and only use “,” to separate values when setting different values for each channel.

  • IS_BGR: Format of input image (RGB or BGR)

  • IN_NODE: The name of input node for target network

  • OUT_NODE: The name of output node for target network

    • If two or more nodes exists, separate layers by “,”.

  • PRIORBOX_NODE: Node equivalent to “priorbox”

    • Need to set when IS_SSD=1

  • CAVALRY_VER: Version of cavalry to use

  • PREPRO: Path of preprocessing script (python script)

    • Refer to “/home/cvtool/ common/prepro.py” for how to create a script

  • PREPRO_ARG: Argument of preprocessing script (python script)

  • PARSER_IN_DATA_FORMAT: Format of input data for target model (when tfparser run) (NHWC or NCHW)

  • IN_DATA_FILEFORMAT: Input data format

    • Examples : uint8->0,0,0,0, float32->1,2,0,7, float16-> 1,1,0,4

    • When the value of IN_DATA_FILEFORMAT changes from “0,0,0,0”, setting PREPRO is needed.

  • N_DATA_TRANSPOSE: Specify when performing TRANSPOSE on the input data

...