Skip to content

TensorRT segmentation probabilities scores #887

Closed as not planned
Closed as not planned
@user41pp

Description

@user41pp

Describe the feature

MMSegmentation TensorRT deployment: output float probabilities/scores instead of int class labels.

In segmentor.h we have
int* mask; ///< segmentation mask of the input image, in which mask[i * width + j] indicates the label id of pixel at (i, j)

Request: change mask to be a 3d matrix of probabilities of shape (width, height, num_classes) with float probabilities for all classes.

This would require modifications in the export pipeline as well.

Motivation

  • Variable thresholds for different classes at runtime
  • Decision making based on all scores, not just the top one, if available

Related resources

https://github.com/open-mmlab/mmdeploy/blob/master/csrc/mmdeploy/apis/c/mmdeploy/segmentor.h

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions