def __getitem__(self, index):
    (_img, _target, _sp) = self._make_img_gt_point_pair(index)
    sample = {'image': _img, 'label': _target, 'super_pixel': _sp}
    for split in self.split:
        if (split == 'train'):
            return self.transform_tr(sample)
        elif (split == 'val'):
            return self.transform_val(sample)
def __getitem__(self, index):
    (_img, _target, _sp) = self._make_img_gt_point_pair(index)
    sample = {'image': _img, 'label': _target, 'super_pixel': _sp}
    for split in self.split:
        if (split == 'train'):
            return self.transform_tr(sample)
        elif (split == 'val'):
            return self.transform_val(sample)