Use digital labels as class names

Would the use of digital labels as class names, such as 1 for cat and 2 for dog, affect how pytorch predict?

Here is original datasets:



how about i change them to be:



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 where the folders are used to create the class indices.

Oh´╝îthanks for your answer.
i change the name of the folder and it works well.