The labels might be created in a different order, i.e. class0 is now in folder 000 and was cat before.
Besides that the training etc. should be the same.
If you are using torchvision.datasets.ImageFolder, have a look at this line of code 2 where the folders are used to create the class indices.