--insert_op_conf

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 letters, digits, 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 uses the AIPP preprocessing operator as an example. The content of the configuration file is as follows (insert_op.cfg is used as an example file name). For details about the configuration of the AIPP preprocessing configuration file, see AIPP.

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