Your num_workers equal 0 means that the main process does the data loading when needed.
What instance are you running this in?  Based on the number of cores, set the num_workers to 2 * num_cores. This way, several num_workers number of subprocesses will be launched to load the images.