从Google drive下载文件夹到colab笔记本

2024-04-29 06:52:34 发布

您现在位置:Python中文网/ 问答频道 /正文

我的google drive中有一个690Mo大小的数据集文件夹,我想复制google colab笔记本上的hole数据集来训练我的模型,但是复制过程非常长,所以我如何使用python脚本从google drive下载该文件夹


Tags: 数据模型脚本文件夹过程google笔记本drive
1条回答
网友
1楼 · 发布于 2024-04-29 06:52:34

也许,Google Drive的根目录或dataset文件夹中的文件太多了

If you have too many files and folders in root directory, then you should clean up and sort it in less folders.

If you have many files in dataset folder, then try the following solutions:

  1. Make a compressed file of your dataset folder and save it to drive. Then while running copy that compressed file (will take less than a minute for 690Mb) and extract it in Colab.

  2. Upload your dataset to any other platform (say OneDrive, Mega, etc.), get the link, and download on Colab using that link.

相关问题 更多 >