Which image format are you using?
You can think about saving raw arrays or using gpu decoding if you work with jpg images.
Another suggestion is you to try DALI as it’s the fastest dataloader you can use.