Datasets often have different types of labels such as classifications and bounding boxes. It's advisable to create a Hub Dataset and tensor hierarchy that captures the relationship between the different label types.
Suppose a dataset contains classifications of "indoor" and "outdoor", as well as localization of objects such as "dog" and "cat" that are captured in a file called box_names.txt.
Note that boxes corresponding to a specific image have an identical filename with the extension.txt.
You can initialize a Hub Dataset and create tensors with the same structure as the code below.