scumzilla:

when I use this line, the code does not work as intended and training takes 10x longer.


In WIndows, if name == ‘_main__’ is needed for multiprocessing support.
However, I believe it should not affect the training time.
If the training takes 10x longer, it may have to do with the type of GPU you are using in your PC vs. in Google Colab.