问题
I connected my Google Drive to Google Colab with this code:
# Load the Drive helper and mount
from google.colab import drive
# This will prompt for authorization.
drive.mount('/content/drive')
Now when I want to read a series of folders containing images in my drive, it runs very slow compared to my pc!
And I've noticed that if I run the code a second time, folders which have been already read in the previous run are loaded faster.
Do you have any suggestions for this problem? Thanks.
来源:https://stackoverflow.com/questions/52929888/google-colab-very-slow-reading-data-images-from-google-drive