为什么在 google colab 项目中看不到 google drive 文件夹?

问题描述

我已经使用 google colab 将 gitBreath 克隆到 google 驱动器文件夹,但它不断给我错误,例如文件夹中不存在该目录,但在使用 !ls 时可以看到它

我使用的命令:

%cd gdrive/My Drive/project_folder/CSRNet-pytorch

错误:

[Errno 2] No such file or directory: 'gdrive/My Drive/project_folder/CSRNet-pytorch' 
/content/gdrive/My Drive/project_folder/CSRNet-pytorch

有时它会起作用,有时它不起作用,这就是我感到困惑的原因。我每次都必须使用此命令挂载我的驱动器:

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

也许我没有看到任何东西,但我不知道在哪里可以解决这个错误,因此我无法访问我的数据集文件夹,也无法读取图像

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...