简体   繁体   English

将 google drive 文件夹连接到 google colab

[英]connect google drive folder to google colab

I need to load all image in google colab from google drive folder我需要从谷歌驱动器文件夹中加载谷歌 colab 中的所有图像

The path of google drive folder: My Drive > Data Science > Deep_learning > dogImages > train > Yorkshire_terrian> Yorkshire_terrian01.pnj google drive 文件夹路径:My Drive > Data Science > Deep_learning > dogImages > train > Yorkshire_terrian> Yorkshire_terrian01.pnj

#dogImages is main folder in which there are three sub folder train, test, valid and in each sub folder there are folder for different bog breed and in that dog breed folder there are images #dogImages 是主文件夹,其中有三个子文件夹 train、test、valid,在每个子文件夹中都有用于不同沼泽品种的文件夹,并且在该狗品种文件夹中有图像

#now I want to store all images which are there in different folder in one variable nmae "dog_breed_image" #现在我想将不同文件夹中的所有图像存储在一个变量 nmae "dog_breed_image" 中

can anyone tell me how to do that谁能告诉我该怎么做

在此处输入图像描述

upload entire folder "dog_breed_image" in your google drive.在您的谷歌驱动器中上传整个文件夹“dog_breed_image”。

then mount your google drive to the colab然后将你的谷歌驱动器安装到 colab

once your drive mount with the colab you can access your folder and as per requirement you can access your file inside folder and sub-folder by their path(ie copy path).一旦您的驱动器与 colab 一起安装,您就可以访问您的文件夹,并且根据要求,您可以通过它们的路径(即复制路径)访问文件夹和子文件夹中的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将文件夹从 Google Colab 移动到 Google Drive - Moving Folder from Google Colab to Google Drive 访问 Google Colab 中与我共享的云端硬盘文件夹 - access to shared with me drive folder in Google Colab 在 Colab 中访问公共 Google 驱动器文件夹(不是来自我的驱动器)? - Access public Google drive folder (not from my drive) in Colab? 将位于 Google Drive 中的图像数据集(文件夹或 zip)加载到 Google Colab? - load image dataset (folder or zip) located in Google Drive to Google Colab? 如何将包含多个文件夹的文件夹从谷歌驱动器上传到谷歌 colab - How to upload folder with multiple folders from google drive to google colab 如何使用 Google Colab 本地运行时并连接到 Google Drive - How to use Google Colab local runtime and connect to Google Drive 如何通过谷歌 colab 代码在我的谷歌驱动器中创建一个文件夹? - how to create a folder in my google drive through google colab code? 无法在 colab 笔记本中挂载 Google 驱动器文件夹 - Can't mount Google drive folder in colab notebook 通过 Colab Notebook 连接到托管在 Google Drive 上的 .sql 数据库 - Connect to a .sql database hosted on Google Drive via Colab Notebook 将 google credits 连接到 google colab - connect the google credits into google colab
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM