def load_raw_mask(self, image_id, class_or_object):
    "load two kinds of mask of VOC dataset.\n        image_id: id of mask\n        class_or_object: 'class_mask' or 'object_mask' for SegmentationClass or SegmentationObject\n        Returns:\n        image: numpy of mask image.\n        "
    assert (class_or_object in ['class_mask', 'object_mask'])
    image = skimage.io.imread(self.image_info[image_id][(class_or_object + '_path')])
    if (image.ndim != 3):
        image = skimage.color.gray2rgb(image)
    if (image.shape[(- 1)] == 4):
        image = image[..., :3]
    return image
load two kinds of mask of VOC dataset.
image_id: id of mask
class_or_object: 'class_mask' or 'object_mask' for SegmentationClass or SegmentationObject
Returns:
image: numpy of mask image.
def load_raw_mask(self, image_id, class_or_object):
    "load two kinds of mask of VOC dataset.\n        image_id: id of mask\n        class_or_object: 'class_mask' or 'object_mask' for SegmentationClass or SegmentationObject\n        Returns:\n        image: numpy of mask image.\n        "
    assert (class_or_object in ['class_mask', 'object_mask'])
    image = skimage.io.imread(self.image_info[image_id][(class_or_object + '_path')])
    if (image.ndim != 3):
        image = skimage.color.gray2rgb(image)
    if (image.shape[(- 1)] == 4):
        image = image[..., :3]
    return image