def get_raw_image(self, idx):
    'Load a single, unmodified image with given id from the dataset'
    img_file = path.join(self._img_dir, idx)
    if path.exists((img_file + '.png')):
        img_file = (img_file + '.png')
    elif path.exists((img_file + '.jpg')):
        img_file = (img_file + '.jpg')
    else:
        raise IOError('Cannot find any image for id {} in {}'.format(idx, self._img_dir))
    return Image.open(img_file)
Load a single, unmodified image with given id from the dataset
def get_raw_image(self, idx):
    
    img_file = path.join(self._img_dir, idx)
    if path.exists((img_file + '.png')):
        img_file = (img_file + '.png')
    elif path.exists((img_file + '.jpg')):
        img_file = (img_file + '.jpg')
    else:
        raise IOError('Cannot find any image for id {} in {}'.format(idx, self._img_dir))
    return Image.open(img_file)