How to access files on Google Drive via Google Colab notebook (.ipynb)?
08:43 31 May 2018

I have uploaded all the files I need to train (fine-tune) an object detection model on my Google Drive account. There, I have opened an ipynb file via google colab and I need to run some scripts to initialize things and run training.

But I ran into a problem of not knowing how to access the files that I uploaded from the notebook. The notebook is created in the same directory of the scripts that I need to run.

When I execute !ls I get only one datalab folder in return, and !pwd returns /content.

I want to know if there's a way to access all the files I have uploaded to my google drive account. I may be doing the wrong thing trying to train a model this way, but I don't know any other. So, please help :).

Thank you in advance.

python google-drive-api google-colaboratory