mmsegmentation的test.py的结果中不显示标签类别
mmsegmentation/mmseg/visualization/local_visualizer.py中的第256行其中的with_labels改为false即可
def add_datasample(
self,
name: str,
image: np.ndarray,
data_sample: Optional[SegDataSample] = None,
draw_gt: bool = True,
draw_pred: bool = True,
show: bool = False,
wait_time: float = 0,
# TODO: Supported in mmengine's Viusalizer.
out_file: Optional[str] = None,
step: int = 0,
with_labels: Optional[bool] = False) -> None:

浙公网安备 33010602011771号