Using the Configuration File - 3.5 English

Vitis AI Library User Guide (UG1354)

Document ID
UG1354
Release Date
2023-06-29
Version
3.5 English

The AMD Vitis™ AI Library provides a way to read model parameters with a configuration file. It facilitates the uniform configuration management of model parameters. The configuration file is located at /usr/share/vitis_ai_library/models/[model_name]/[model_name].prototxt.

model
{
  name: "yolov3_voc"
  kernel {
     name: "yolov3_voc"
     mean: 0.0
     mean: 0.0
     mean: 0.0
     scale: 0.00390625
     scale: 0.00390625
     scale: 0.00390625
  }
  model_type : YOLOv3
  yolo_v3_param {
    …
  }
  is_tf: false
}
Table 1. Compiling Model and Kernel Parameters
Model/Kernel Parameter Type Description
model name Same as ${MODEL_NAME}.
model_type Type of model used. The following types are supported.
  • CLASSIFICATION
  • DENSE_BOX
  • YOLOv3
  • SEGMENTATION
  • SSD
  • MULTI_TASK
  • TFREFINEDET
  • OPENPOSE
  • ROADLINE
  • POINTPILLARS_NUS
  • REFINEDET
  • POINTPILLARS
  • REID
  • MEDICALREFINEDET
  • FAIRMOT
  • HOURGLASS
kernel name The result of your DNNC compile. This can have an extra postfix _0. Include the postfix with the name, for example, inception_v1_0.
mean Three lines corresponding to the mean-value of “BGR”, which are predefined in the model. It is listed in "BGR" order.
scale Three lines corresponding to the RGB-normalized scale. It is listed in "BGR" order. If the model had no scale in training stage, this value should be 1.
is_tf Boolean type. If your model is trained by TensorFlow, set the value to TRUE. It could be blank in the prototxt or set as FALSE, if the model is Caffe or PyTorch.