In this tutorial, you’ll learn how to connect your Google Colab with Google Drive to build some Deep Learning model on Google Colab. In Google Colab, you can build deep learning models on 12GB of GPU besides this now, Google Colab is providing TPU also.
This is a completely free to use research project from Google.
What is Google Colaboratory ?
In Short, Google Colaboratory is known as Colab. This is a cloud service, and now Google Colab supports GPU and TPU!
Using Colab, you can:
- Enhance your Python programming language coding skills
- Develop excellent deep learning models using most popular libraries like TensorFlow, Keras, PyTorch, and OpenCV.
- Do anything without much worrying about packages, libraries, and their installation.
- Here is Colab most of the libraries are pre-installed that makes it easy to use, libraries which are not pre-installed here can be installed with a simple command
“ !pip install package_name
Loading Your Data into Google Colaboratory.
One thing that makes Colab the best of all is that it comes with various libraries that help in accessing lots of Services provided by Google itself. Colab saves all your Jupyter Notebook to Google Drive, and you can share your Jupyter Notebooks very efficiently anywhere.
But the problem arises when we have to work with huge Dataset, As google colab also provides many ways to upload your data to its Virtual Machine on which your code is running. But as soon as you got disconnected all of your Data is lost when you reconnect to new Virtual Machine that is offered to you.
I’m here to help you with this problem of uploading your data to colab again and again.
To avoid this problem, follow these Steps:
1. First of all, Upload your Data to your Google Drive.
2. Run the following script in colab shell.
#Start by connecting gdrive into the google colab
from google.colab import drive
Go to the mentioned link..
3. Copy the authorization code of your account.
4. Paste the authorization code into the output shell.
5. Congrats! Now your Google Drive is mounted to this location /content/gdrive/My Drive/
Cheers!! Happy Coding!!
[bctt tweet=”If you like our post then please share it”]
Note: This is a guest post, and opinion in this article is of the guest writer. If you have any issues with any of the articles posted at www.marktechpost.com please contact at firstname.lastname@example.org