Thanks @ptrblck
But are you saying that my data loading is slow compared with training loop time, or you mean that I have an issue with MyDataset class?
What I understand from the discussion, that in my case, there is no way to avoid this other than increasing the number of workers to the limit that makes their loading time hidden compared with the training loop time. Please correct my understanding.