Closed as not planned
Description
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