NVIDIA DeepStream SDK API Reference

7.0 Release
CustomMeanSubandNormParams Struct Reference

Detailed Description

Custom parameters for normalization and mean subtractions.

Definition at line 71 of file nvdspreprocess_impl.h.

Collaboration diagram for CustomMeanSubandNormParams:

Data Fields

std::string labelsFilePath
 Holds the pathname of the labels file containing strings for the class labels. More...
 
std::string meanImageFilePath
 Holds the pathname of the mean image file (PPM format). More...
 
std::vector< float > offsets
 Holds the per-channel offsets for mean subtraction. More...
 
float pixel_normalization_factor = 1.0
 Holds the normalization factor with which to scale the input pixels. More...
 
NvDsPreProcessNetworkSize networkSize
 width, height, channels size of Network More...
 

Field Documentation

◆ labelsFilePath

std::string CustomMeanSubandNormParams::labelsFilePath

Holds the pathname of the labels file containing strings for the class labels.

The labels file is optional. The file format is described in the custom models section of the DeepStream SDK documentation.

Definition at line 76 of file nvdspreprocess_impl.h.

◆ meanImageFilePath

std::string CustomMeanSubandNormParams::meanImageFilePath

Holds the pathname of the mean image file (PPM format).

File resolution must be equal to the network input resolution.

Definition at line 80 of file nvdspreprocess_impl.h.

◆ networkSize

NvDsPreProcessNetworkSize CustomMeanSubandNormParams::networkSize

width, height, channels size of Network

Definition at line 91 of file nvdspreprocess_impl.h.

◆ offsets

std::vector<float> CustomMeanSubandNormParams::offsets

Holds the per-channel offsets for mean subtraction.

This is an alternative to the mean image file. The number of offsets in the array must be equal to the number of input channels.

Definition at line 85 of file nvdspreprocess_impl.h.

◆ pixel_normalization_factor

float CustomMeanSubandNormParams::pixel_normalization_factor = 1.0

Holds the normalization factor with which to scale the input pixels.

Definition at line 88 of file nvdspreprocess_impl.h.


The documentation for this struct was generated from the following file: