[英]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.