'Make and read a custom webdataset

Using a Python package webdataset, how to make a tar archive from a dataset that consists of directories. Each directory is a class, and consists of files, say jpeg images? How to read such a webdataset later with an iterator over the data loader?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source