Classification: ResNet50 / ResNet18 - Classification: ResNet50 / ResNet18 - 6.3 English - XD056

Vitis Video Analytics SDK (VVAS) 6.3 User Guide (XD056)

Document_ID
XD056
Release_Date
2026-09-24
Version
6.3 English

Both libraries perform ImageNet-style top-k classification on a single output tensor with 1000 logits. They support INT8 (auto-dequantized), FP32, BF16, and FP16 tensor data types.

Table 34 library-config fields (classification)

Key

Type

Default

Description

topk

int

1

Number of top-scoring classes to return.

label-file-path

string

(required)

Path to a text file with one class label per line (1000 lines for ImageNet). Initialization fails if the file is missing or unreadable.

disable-softmax

bool

false

Skip the softmax computation before top-k selection. Use this when the model already outputs probabilities. ResNet50 only – the ResNet18 library always applies softmax and does not recognize this field.

Example library-config for ResNet50:

{
  "library-config": {
    "topk": 5,
    "label-file-path": "/usr/share/vvas/resnet50/labels.txt",
    "disable-softmax": false
  }
}