Hi,
If you insist on using torchvision datasets.ImageFolder and DatasetsFolder. You need to inherit both ImageFolder and DatasetsFolder classes and create a new getitem method that returns both pose and image.