Open huynhtuan17ti opened 4 months ago
Bug
gt_segm, res_segm = gt_segm[~to_ignore], res_segm[~to_ignore] inds = n * gt_segm + res_segm
Seems inds can be overflowed due to dtype of gt_segm and res_segm being np.uint8.
inds
dtype
gt_segm
res_segm
np.uint8
Bug fix
A possible fix is to cast the type of gt_segm to a bigger byte-size type.
Bug
Seems
inds
can be overflowed due todtype
ofgt_segm
andres_segm
beingnp.uint8
.Bug fix
A possible fix is to cast the type of
gt_segm
to a bigger byte-size type.