Yes but fortunately i do have only 3 classes. I mean that my subfolders represent the same 3 classes in every folder. So it is not a problem that i will only have 0, 1, 2 labels. I just wanted to make sure that in folder A, subfolder1 has label 0, subfolder2 has label 1 and subfolder3 has label 2. The same thing happens for the other folders (for example in folder B, subfolder1 has label 0, subfolder2 has label 1 etc).
So eventually i do not have problem with trainloader right? It will not confuse the labels. In every folder, always subfolder1 will have label 0, right?