Restrictions

  • If the dynamic AIPP and dynamic batch size are both enabled:
    • The batchSize parameter passed to the acl.mdl.create_aipp call must be set to the allowed maximum profile.
    • For data nodes that require dynamic AIPP, the corresponding input buffer must be allocated based on the maximum batch size profile.
  • If the dynamic AIPP and dynamic image size are both enabled:
    • If the image cropping, resizing, or padding function is enabled in setting the dynamic AIPP parameters, the dynamic image size becomes unavailable.
    • If the image cropping, resizing, or padding function is not enabled in setting the dynamic AIPP parameters, the dynamic AIPP and dynamic image size are both available. However, ensure that the width and height configured by calling acl.mdl.set_aipp_src_image_size are consistent with those configured by calling acl.mdl.set_dynamic_hw_size.
    • For data nodes that require dynamic AIPP, the corresponding input buffer must be allocated based on the allowed maximum image size.
  • When dynamic AIPP and dynamic shape input (setting the shape range) are used at the same time, the width and height of the output image of dynamic AIPP must be within the configured shape range.
  • If static AIPP and dynamic image size are both enabled, because the width and height of the input image are uncertain in the dynamic image size scenario, when the insert_op_conf parameter of the ATC tool is used to transfer the AIPP configuration file, the crop and padding functions cannot be enabled in the AIPP configuration file. Additionally, the src_image_size_w and src_image_size_h values in the configuration file need to be set to 0.