TFDS extract file name

20 Views Asked by At

In tfds, we do

def _generate_examples(self, file_paths):
    for file_path in file_paths:
        yield file_path, {
            'image': image,
            'label': label
        }

I am already yielding file_path, how can I get it when i load the dataset? i.e

data = tfds.load('dataset')
# print all file names
0

There are 0 best solutions below