Updated on 2022-03-13 GMT+08:00

AIPP Configurations According to Model Inputs

You can specify more than one set of AIPP configurations in the AIPP configuration file. Different AIPP processing is performed for different model inputs. Different sets of AIPP parameters are separated by the aipp_op flags. For example:

aipp_op {
       related_input_rank: 0      
       aipp_mode : dynamic         
       max_src_image_size: 60000  
}
aipp_op {
       related_input_rank : 1      
       aipp_mode : dynamic         
       max_src_image_size: 80000
}

The preceding configuration defines two sets of AIPP parameters, corresponding to AIPP on the first and second inputs of the model. Dynamic AIPP is adopted. The maximum image sizes allowed by the two inputs are 60000 bytes and 80000 bytes respectively.