Function: get_first_aipp_info
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Obtains the AIPP (static or dynamic) configuration of a model.
AIPP provides the following operations and they are executed in the exact sequence:
- Cropping
- Color space conversion
- Resizing (not supported in the current version)
- Mean subtraction/Normalization
- Padding
Prototype
- C Prototype
1aclError aclmdlGetFirstAippInfo(uint32_t modelId, size_t index, aclAippInfo *aippInfo)
- Python Function
1aipp_info, ret = acl.mdl.get_first_aipp_info(model_id, index)
Parameter Description
Parameter |
Description |
|---|---|
model_id |
Int, model ID. You can obtain the model ID after the model is successfully loaded by calling the following APIs: |
index |
Int, the sequence number of the specified input image of the model |
Return Value Description
Return Value |
Description |
|---|---|
aipp_info |
Dict, static AIPP configuration of the specified input. For details, see aclAippInfo. |
ret |
Int, error code.
|
Restrictions
To obtain the dynamic AIPP configuration, this API call returns the values of only the following parameters in aipp_info: srcFormat, srcDatatype, srcDimNum, shapeCount, and outDims.