(self)
return splits
Create splits for MSCOCO and store them in the default path.

    Returns:
      The splits for this dataset, represented as a dictionary mapping each of
      'train', 'valid', and 'test' to a list of class names.
Create splits for MSCOCO and store them in the default path.
Create splits for MSCOCO and store them in the default path .
def create_splits(self):
    """Create splits for MSCOCO and store them in the default path.

    Returns:
      The splits for this dataset, represented as a dictionary mapping each of
      'train', 'valid', and 'test' to a list of class names.
    """
    train_inds, valid_inds, test_inds = gen_rand_split_inds(
        self.NUM_TRAIN_CLASSES, self.NUM_VALID_CLASSES, self.NUM_TEST_CLASSES)

    splits = {
        'train': [self.coco_categories[i]['name'] for i in train_inds],
        'valid': [self.coco_categories[i]['name'] for i in valid_inds],
        'test': [self.coco_categories[i]['name'] for i in test_inds]
    }
    return splits
def create_splits ( self ) : train_inds , valid_inds , test_inds = gen_rand_split_inds ( self . NUM_TRAIN_CLASSES , self . NUM_VALID_CLASSES , self . NUM_TEST_CLASSES ) splits = { 'train' : [ self . coco_categories [ i ] [ 'name' ] for i in train_inds ] , 'valid' : [ self . coco_categories [ i ] [ 'name' ] for i in valid_inds ] , 'test' : [ self . coco_categories [ i ] [ 'name' ] for i in test_inds ] } return splits