Deep learnin on Google Colab: loading large image dataset is very long, how to accelerate the process?
问题 I'm working on a Deep Learning model using Keras and to speed up the computation I'd like to use the GPU available on google colab. My image files are already loaded on my google drive. I have 24'000 images for training on 4'000 for testing my model. However when I load my images into an array, it takes a very long time (almost 2h) So it is not very convenient to do that every time I use google colab notebook. Would you know how to accelerate the process ? This is my current code: TRAIN_DIR =