I want to add another dataset (i am trying to fuse the datasets). So I have created another class for my other dataset in the same manner as the first previous one. Is there any way that I have put the two datasets together in a single dataloader? Thanks in advance.
I met a similar but more complicated scenario: I got two datasets A and B, and the batch_size_A was 30 while the batch_size_B was 60. ConcatDataset can only deal with the case where A and B are equivalent. So is there any official for imbalanced multi dataset sampling?
If you want to use different batch sizes for the datasets, you could either use different DataLoaders or probably create a custom sampler, which would use the predefined sample indices given your batch sizes.
I have built a custom Dataset class for loading COCO instance segmentation datasets. ConcatDataset is not available when inheriting from the abstract class Dataset but I have the need to merge multiple datasets. Any help would be appreciated.