Hi everyone! I am kind of new in deep learning and pytorch. That’s why I’m having some issues and thought to address them here… 
I need to create a dataset object for loading the data afterwards as a set of labeled bags (Multiple instance learning). Each bag will contain 10 images. And to label the bags (directories), I created a CSV file with two columns - one holding the directory name and the other some certain value as a label (regression task). How can I code the dataset object, such that when I provide it to the DataLoader, my data will be loaded bag-wise?
I could not find any piece of code or any link which could help me further. Any help would be much appreciated!