After this tutorial you’ll be able to connect every dataset or file system with google drive. But after that you have to look two features
-
Google colab asks you to acceed to ur drive content, so keep caution.
-
After giving permissions you won’t have to reload your data every 10 minutes as the traditional way.
Let’s do it!
- Import the google drive library
from google.colab import drive
drive.mount('/gdrive/My Drive')
- Set your drive up
drive.mount('/gdrive/My Drive')
- Save your file’s path to any variable
my_path = '/gdrive/My Drive/my_dataset/firulais.csv'
- Work with several tools. For example I use here cifar to load some dataset to a google drive folder
cifar = datasets.CIFAR10('/gdrive/ My Drive/dl-pytorch/datasets', download = True)
Curso de Deep Learning con Pytorch
0 Comentarios
para escribir tu comentario