mmsegmentation icon indicating copy to clipboard operation
mmsegmentation copied to clipboard

Update confusion_matrix.py

Open MGAMZ opened this issue 1 year ago • 0 comments

Motivation

The current implementation do not work correctly when num_classes is larger than 16. Because the gt seg map was forced to uint8 dtype.

Modification

Let gt seg map being np.uint32, rather than uint8 for no reason. The function works fine after the modification.

MGAMZ avatar Aug 08 '24 10:08 MGAMZ