Thanks.
What if I oversample all the minor classes to the largest class (#6120) in a list and then do the sorting/dataset from the list?
This way there will be 7*6120 = 42840 image training.
Does that anyhow compromise the training process?
One thing I understand I need to input all the images from all classes in the network.
After creating the list of lists as you mentioned, the image name list has following class and samples:
0: 877, 1: 6120, 2: 470, 3: 307, 4: 962, 5: 91, 6: 118