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.
My custom dataset is based off of this example.

  
      
      Medium – 9 Apr 20
  
  
    

How to train an Object Detector with your own COCO dataset in PyTorch 15

Understand and apply PyTorch’s Dataset & DataLoader to train an Object Detector with your own COCO formatted data

  Reading time: 4 min read