in base/base_dataset.py [0:0]
def _load_index(self):
"""Get indexed set. If the set has already been
indexed, load the file, otherwise index it and save cache.
Returns:
dict -- index set
"""
idx_path = os.path.join(self.path, 'index.h5')
if io.exists(idx_path):
return io.read_h5(idx_path)
index = self.index_db()
io.write_h5(idx_path, index)
return index