Can dali webdataset reader work out classes from folder structure?
#4.146 aberto em 7 de ago. de 2022
Métricas do repositório
- Stars
- (5.722 stars)
- Métricas de merge de PR
- (Métricas PR pendentes)
Description
The webdataset reader seems to require a file to define the class per image in a tar?
As shown in this example: https://docs.nvidia.com/deeplearning/dali/user-guide/docs/examples/general/data_loading/dataloading_webdataset.html
The standard nvidia.dali.fn.readers.file can work out the class from the folder structure as per:
https://docs.nvidia.com/deeplearning/dali/user-guide/docs/operations/nvidia.dali.fn.readers.file.html
Is it possible to get derive the label for a file from the folder that it is in with webdataset or do I need to add an extra file per sample for the class?