Let’s say I have 2 image folder datasets and I want to concatenate them.
The first dataset has 100 images with 2 equal classes: “Dog” and “Cat” with class indices 0 and 1
The second dataset has 120 images with 3 equal classes: “Dog”, “Cat” and “Pig” with class indices 0, 1 and 2
When I concatenate the two datasets with torch.utils.data.ConcatDataset(), will I get a dataset with 90 dog and 90 cat images, and 40 pig images? Or does it treat the two dog and cat labels from the two datasets as different classes - so I actually end up with 5 classes? I didn’t find an easy way to check because the ConcatDataset class doesn’t have a classes or class_to_idx method.