

def imageset(self, imageset='trainval'):
    '\n        imageset should be: trainval, train, or val\n        '
    imageset = '{0}.txt'.format(imageset)
    path = os.path.join(self.root, 'ImageSets', 'Main', imageset)
    for line in open(path):
        (yield line.strip())

dataset/ETHPy150Open cvondrick/pyvision/vision/pascal.py PascalDataset.imageset/original