Google colab is a google internal research tool for data science for some time. They have released out the tool sometime earlier to the general public with a noble goal of dissemination of machine learning education and research. Although it’s been for quite a while there is a new feature that will interest a lot of people.
Getting Google Colab Ready to Use
- Go to https://colab.research.google.com/ and signup.
- Once you get the access, you can upload notebooks using File->Upload Notebook.
Setting Free GPU
- just follow Edit > Notebook settings or Runtime>Change runtime type and select GPU as Hardware accelerator.
- Now we can start using Google Colab. (Running basic Python codes)
- To cross-check whether the GPU is enabled you can run the first cell in the shared notebook.
Installing some basic libraries
As the default environment doesn’t have Pytorch, We have to install this ourselves. So don’t delete the cells.
It is also necessary to install. We’ll use pip to install. https://docs.fast.ai/
It is used in GPU. Use pip to install. https://pypi.org/project/Keras/
Install OpenCV-Python in Windows - OpenCV 3.0.0-dev documentation
In this tutorial We will learn to setup OpenCV-Python in your Windows system. Below steps are tested in a Windows 7-64…
Packages marked with an asterisk(*) are provided by outside parties. We list them for convenience, but disclaim…
There are other libraries too by
Writing and Running codes
- There are many sample codes in Google Colab also, you can check that too if you want. Else, write your own codes.
- After writing codes, Run the code.
- Sometimes, errors comes in connecting with GPU runtime, it sometimes throws an error saying it can’t connect. That’s due to the heavy number of people trying to use the service Vs the number of GPU machines.
- But don’t forget to save your code in Google Drive by making a folder of your name, and try again re connecting.
I think Colab will bring a new breath to Deep Learning and AI studies all over the world.
This task was completed as a part of Google Code-in 2018.
Google Code-in is a contest to introduce pre-university students (ages 13–17) to open source software development. Since 2010, over 3200 students from 99 countries have completed work in the contest.
View Contest: https://codein.withgoogle.com/
Sustainable Computing Research Lab (SCoRe) @ Google Code-In : https://codein.withgoogle.com/organizations/sustainable-computing-research-lab-score/