PaddleSeg icon indicating copy to clipboard operation
PaddleSeg copied to clipboard

[General Issue] 查看每个像素的置信度

Open lanjingks opened this issue 3 years ago • 1 comments

https://github.com/PaddlePaddle/PaddleSeg/blob/d7d909cabb98fabae9e3e49b579bfb0bf8d574a3/paddleseg/core/infer.py#L243 这里怎么看每个像素的置信度呢?

lanjingks avatar Jul 19 '22 10:07 lanjingks

模型的输出是logit,纬度是nch*w,c是分割类别数。 具体取出来特定通道数的数值,就是对应类别的置信度。

通常是使用argmax取出最大置信度的通道数,得到该像素的预测类别。

juncaipeng avatar Jul 19 '22 12:07 juncaipeng

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Dec 10 '22 17:12 github-actions[bot]