parameters: (self)
return_statement: return image_index
docstring: Load the indexes listed in this dataset's image set file.
docstring_summary: Load the indexes listed in this dataset's image set file.
docstring_tokens: Load the indexes listed in this dataset s image set file .
function: def _load_image_set_index(self):
          """
          Load the indexes listed in this dataset's image set file.
          """
          # Example path to image set file:
          # self._devkit_path + /VOCdevkit2007/VOC2007/ImageSets/Main/val.txt
          image_set_file = os.path.join(self._data_path, 'ImageSets', 'Main',
                                        self._image_set + '.txt')
          assert os.path.exists(image_set_file), \
                  'Path does not exist: {}'.format(image_set_file)
          with open(image_set_file) as f:
              image_index = [x.strip() for x in f.readlines()]
          return image_index
function_tokens: def _load_image_set_index ( self ) : # Example path to image set file: # self._devkit_path + /VOCdevkit2007/VOC2007/ImageSets/Main/val.txt image_set_file = os . path . join ( self . _data_path , 'ImageSets' , 'Main' , self . _image_set + '.txt' ) assert os . path . exists ( image_set_file ) , 'Path does not exist: {}' . format ( image_set_file ) with open ( image_set_file ) as f : image_index = [ x . strip ( ) for x in f . readlines ( ) ] return image_index