MCPcopy Create free account
hub / github.com/VincentHancoder/SSGD / mask2ndarray

Function mask2ndarray

mmdet/core/utils/misc.py:46–62  ·  view source on GitHub ↗

Convert Mask to ndarray.. Args: mask (:obj:`BitmapMasks` or :obj:`PolygonMasks` or torch.Tensor or np.ndarray): The mask to be converted. Returns: np.ndarray: Ndarray mask of shape (n, h, w) that has been converted

(mask)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
test_mask2ndarrayFunction · 0.90
imshow_gt_det_bboxesFunction · 0.85

Calls 4

numpyMethod · 0.80
cpuMethod · 0.80
detachMethod · 0.80
to_ndarrayMethod · 0.45

Tested by 1

test_mask2ndarrayFunction · 0.72