--insert_op_conf

Applicability

Product

Supported (√/x)

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Description

Sets the configuration file directory (including the file name) of an operator to be inserted, for example, the AIPP operator for data preprocessing.

After this option is used, the input data type must be UINT8.

See Also

Arguments

Argument: directory (including the name) of the configuration file of the operator to be inserted.

Format: The directory (including the file name) can contain uppercase and lowercase letters (A–Z, a–z), digits (0–9), underscores (_), hyphens (-), periods (.), and Chinese characters.

Restrictions: The file name extension is not limited to .cfg, but the content in the configuration file must be in .prototxt format.

Suggestions and Benefits

None

Examples

The following is an example of inserting the AIPP operator. The content of the configuration file (insert_op.cfg in the example) is as follows:

aipp_op {
    aipp_mode:static
    input_format:YUV420SP_U8
    csc_switch:true
    var_reci_chn_0:0.00392157
    var_reci_chn_1:0.00392157
    var_reci_chn_2:0.00392157
}

Upload the configured insert_op.cfg file to any directory on the server where the AOE is located. In the following command, /home/Davinci/ is used as an example.

--insert_op_conf=/home/Davinci/insert_op.cfg

Dependencies and Restrictions

None