Skip to content

Deprecated precision key for image type in model_proc #450

@mlix11

Description

@mlix11

I recently upgrade dlstreamer to the version 2024.2.1. Previously I had the precision defined in the image object, like:

{
  "json_schema_version": "2.2.0",
  "input_preproc": [
    {
      "format": "image",
      "layer_name": "input",
      "precision": "FP32",
      "params": {
        "resize": "aspect-ratio",
        "color_space": "BGR",
        "range": [-1.0, 1.0]
      }
    }
  ],
  "output_postproc": [
    {
      "layer_name": "dets",
      "converter": "raw_data_copy"
    },
    {
      "layer_name": "labels",
      "converter": "raw_data_copy",
      "label": ""
    },
    {
      "layer_name": "masks",
      "converter": "raw_data_copy"
    }
  ]
}

With the newer version, the precision key for images should always be/only UINT8. Setting the precision to UINT8 is not the correct precision for the model (rtmdet) and the output is not as with the previous version (2022)

Is there any workaround or other way to set the proper precision and image value range?

I appreciate any help you can provide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions