0

I have an unbalanced dataset of pictures. Simplifying a little bit, let's say the dataset is composed by three different categories {"A", "B", "C"}, which contain respectively:

"A": 2500 pictures
"B": 10000 pictures
"C": 2000 pictures

which leads to the following dictionary:

{"A": 4.0, "B": 1.0, "C": 5.0}

or, if using MXNET as in my case, to the following array:

[4.0, 1.0, 5.0]

Now the question is: How can I find out, whether the order of the elements in the array corresponds to the read order from the disk or not? Should I order the elements in the array accordingly the alphabetical order of the name of the folders containing the pictures? I'm using gluon for reading the dataset from the hard disk, in particular I'm using the ImageFolderDataset followed by the DataLoader.

Dave
  • 349
  • 4
  • 22

0 Answers0