我使用以下代码将我的 Google Drive 连接到 Google Colab:
# Load the Drive helper and mount
from google.colab import drive
# This will prompt for authorization.
drive.mount('/content/drive')
Run Code Online (Sandbox Code Playgroud)
现在,当我想读取驱动器中包含图像的一系列文件夹时,与我的电脑相比,它的运行速度非常慢!
而且我注意到,如果我第二次运行代码,上次运行中已经读取的文件夹的加载速度会更快。
您对这个问题有什么建议吗?谢谢。