open-mmlab / mmsegmentation

OpenMMLab Semantic Segmentation Toolbox and Benchmark.
https://mmsegmentation.readthedocs.io/en/main/
Apache License 2.0
7.7k stars 2.53k forks source link

推理得到的语义分割图如何取消图像中的分类标注 #3588

Closed MrRa1ndrop closed 3 months ago

MrRa1ndrop commented 3 months ago

如题,经过推理得到的图像会自动标注上类别文字,如果取消标注。

MrRa1ndrop commented 3 months ago

新版本需要在def show_result_pyplot(..),中将with_labels: Optional[bool] = True改为False即可。

hhuzzz commented 3 months ago

请问您使用的是demo/image_demo.py推理的吗,是在windows环境吗