This section describes the JSON file format and configuration parameters for the vvas_xinfer plug-in.
Sample config json for onnxrt with internal pre-processing
{
"preprocess-config":{
"xclbin-location":"./x_plus_ml.xclbin",
"library-name": "libvvas_image_process_hw_lib.so",
"library-config": "{\"kernel-name\":\"image_processing:{image_processing_1}\"}",
"mean-r": 123.675,
"mean-g": 116.28,
"mean-b": 103.53,
"scale-r": 0.017124,
"scale-g": 0.017507,
"scale-b": 0.017429
},
"infer-config":{
"model-format" : "RGB",
"inference-backend-runtime" : "onnxrt",
"onnxrt-config":{
"onnx-model-path" : "./resnet50.onnx",
"input-tensor-layout" : "NCHW",
"onnxrt-ep" : "vitisai",
"vitisai-ep-config":{
"config-file-path": "./vitisai_config.json",
"cache-dir": ".",
"cache-key": "resnet50"
}
}
},
"postprocess-config" : {
"library-path" : "/usr/lib/libvvascore_postprocess_resnet50-1.0.so",
"library-config" : {
"topk" : 1,
"label-file-path" : "./imagenet-classes-1000.txt"
}
}
}
Sample config json for vart with external pre-processing
{
"infer-config":{
"model-format" : "RGB",
"inference-backend-runtime" : "vart",
"vart-config": {
"vart-model-path": "./ResNet50.rai"
}
},
"postprocess-config" : {
"library-path" : "/usr/lib/libvvascore_postprocess_resnet50-1.0.so",
"library-config" : {
"topk" : 1,
"label-file-path" : "./imagenet-classes-1000.txt"
}
}
}
Various configuration parameters passed to vvas_xinfer via a JSON file are described in the following table.