gpt4 book ai didi

python - 在存储在谷歌驱动器中的谷歌 Colaboratory 中导入 zip 文件

转载 作者:行者123 更新时间:2023-11-28 22:19:36 25 4
gpt4 key购买 nike

我需要将以 .zip 格式存储在 google drive 上的数据访问到 google collaboratory。 至于每次我需要上传大数据时都要训练模型。有没有其他有效的方法可以直接访问数据而无需每次都上传?

最佳答案

从谷歌驱动器中提取 zip 文件的最小方法

from google.colab import drive
drive.mount('/content/gdrive')

在新标签页中打开链接 -> 您将获得一个代码 - 将其复制回您现在可以访问 google drive check 的提示中:

!unzip "/content/gdrive/My Drive/file_name.zip"

关于python - 在存储在谷歌驱动器中的谷歌 Colaboratory 中导入 zip 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49612155/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com