SlideShare a Scribd company logo
Google colab
Rama Krishna E
Contents
Colab
Drive
Connect
Programming
Possibilities
Rama Krishna E
What is Google Colab?
Google Colab is a free cloud service and now it supports free GPU!
improve your Python programming language coding skills.
develop deep learning applications using popular libraries such as
Keras, TensorFlow, PyTorch, and OpenCV.
The most important feature that distinguishes Colab from other free cloud
services is; Colab provides GPU and is totally free.
Details: https://research.google.com/colaboratory/faq.html
Rama Krishna E
What is Google drive?
Google Drive is a file storage and synchronization service developed by Google.
Google Drive allows users to store files on their servers, synchronize files across
devices, and share files.
Google Drive offers users with 15 gigabytes of free storage through Google One.
Files uploaded can be up to 5 terabytes in size.
Rama Krishna E
Getting Google Colab Ready to Use
Since Colab is working on your own Google Drive, we first need to specify the
folder we’ll work.
Of course, you choose the default Colab Notebooks folder instead of app
folder.
Rama Krishna E
Creating New Colab Notebook
Create a new notebook via Right click > More > Colaboratory
Rama Krishna E
Creating New Colab Notebook
Rename notebook by means of clicking the file name.
Rama Krishna E
Setting Free GPU
It is so simple to alter default hardware (CPU to GPU or vice versa); just
follow Edit > Notebook settings or Runtime>Change runtime type and select
GPU as Hardware accelerator.
Rama Krishna E
Running Basic Python Codes with Google Colab
Now we can start using Google Colab.
Rama Krishna E
Running or Importing .py Files with Google Colab
Run these codes first in order to install the necessary libraries and perform authorization.
from google.colab import drive
drive.mount(‘/content/drive/)
When you run the code above, you should see a result like this:
Click the link, copy verification code and paste it to text box.
Rama Krishna E
Running or Importing .py Files with Google Colab
After completion of the authorization process, you should see this:
Now you can reach your Google Drive with:
!ls "/content/drive/My Drive/"
Rama Krishna E
Cloning Github Repo to Google Colab
It is easy to clone a Github repo with Git.
Step 1: Find the Github Repo and Get “Git” Link
Find any Github repo to use.
Clone or download > Copy the link!
Step 2: Git Clone
Simply run:
Step 3. Open the Folder in Google Drive
Folder has the same with the Github repo of course
!git clone https://github.com/wxs/keras-mnist-tutorial.git
Rama Krishna E
Cloning Github Repo to Google Colab
Step 4. Open The Notebook
Right Click > Open With > Colaboratory
Step 5. Run
Now you are able to run Github repo in Google Colab.
Rama Krishna E
Is GPU Working?
To see if you are currently using the GPU in Colab, you can run the
following code in order to cross-check:
import tensorflow as tf
tf.test.gpu_device_name()
Rama Krishna E
Which GPU Am I Using?
from tensorflow.python.client
import device_lib
device_lib.list_local_devices()
Currently, Colab only provides
Tesla K80.
Rama Krishna E
Tesla k80
Rama Krishna E
Tesla k80
Rama Krishna E
Tesla k80
Rama Krishna E
How to Restart Google Colab?
In order to restart (or reset) your virtual machine, simply run:
!kill -9 -1
Rama Krishna E
How to Send Large Files From Colab To
Google Drive?
Rama Krishna E
Refrences:
https://colab.research.google.com/notebooks/welcome.ipynb#recent=true
https://www.google.com/drive/
https://medium.com/deep-learning-turkey/google-colab-free-gpu-tutorial-
e113627b9f5d
https://github.com/wxs/keras-mnist-tutorial
http://www.snrazavi.ir/google_colab_for_deep_learning/
https://deeplearning.ir/tag/%D8%A2%D9%85%D9%88%D8%B2%D8%B4-
google-colab/
https://mh-salari.me/google-colab/
http://blog.class.vision
http://hadifar.net

More Related Content

PPTX
Google colab introduction
PPTX
presentationcloud-18123333331185718.pptx
PPTX
Introduction to using google colab
PPTX
Colab workshop (for Computer vision Students)
PDF
google_colab_tddddddddddddddddddddutorial.pdf
PPTX
artificial-intelligence_SRK.pptx
PPTX
Python Programming with Google Colab
PDF
Introduction to Google Colaboratory.pdf
Google colab introduction
presentationcloud-18123333331185718.pptx
Introduction to using google colab
Colab workshop (for Computer vision Students)
google_colab_tddddddddddddddddddddutorial.pdf
artificial-intelligence_SRK.pptx
Python Programming with Google Colab
Introduction to Google Colaboratory.pdf

More from RamaKrishnaErroju (18)

PPSX
Stack-data-structure.ppsxErwewwwrrterewewew
PPT
Fourier-Series SAMPLE PRESENTATION FOR LEARNING
PPT
311introductiontomachinelearning.ppt12345
PPTX
Day17.pptx department of computer science and eng
PPTX
Day15.pptx school of computer science and ai
PPTX
Day3 datamining recent trends and advancements
PPTX
Day2 Applications of datamining using differe
PPTX
Introduction about Applications of data mining
PPTX
Data Preprocessing techniques for applications
DOCX
TEXMAKER Overview research plagrism check
DOCX
BioIn_Pap1dramaprevenbtionsakcnnshejjsja
PPTX
PLSQL_cur.pptx presentation uploadtttees
PPT
5261506.ppt
PPTX
CONVERSATION.pptx
PPT
sap-overview.ppt
PPT
PPTX
CONVERSATION.pptx
PPTX
Stack-data-structure.ppsxErwewwwrrterewewew
Fourier-Series SAMPLE PRESENTATION FOR LEARNING
311introductiontomachinelearning.ppt12345
Day17.pptx department of computer science and eng
Day15.pptx school of computer science and ai
Day3 datamining recent trends and advancements
Day2 Applications of datamining using differe
Introduction about Applications of data mining
Data Preprocessing techniques for applications
TEXMAKER Overview research plagrism check
BioIn_Pap1dramaprevenbtionsakcnnshejjsja
PLSQL_cur.pptx presentation uploadtttees
5261506.ppt
CONVERSATION.pptx
sap-overview.ppt
CONVERSATION.pptx
Ad

Recently uploaded (20)

PPTX
Cell Types and Its function , kingdom of life
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Lesson notes of climatology university.
PDF
01-Introduction-to-Information-Management.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Cell Structure & Organelles in detailed.
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
GDM (1) (1).pptx small presentation for students
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Basic Mud Logging Guide for educational purpose
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Pre independence Education in Inndia.pdf
Cell Types and Its function , kingdom of life
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Sports Quiz easy sports quiz sports quiz
Complications of Minimal Access Surgery at WLH
Lesson notes of climatology university.
01-Introduction-to-Information-Management.pdf
Anesthesia in Laparoscopic Surgery in India
Cell Structure & Organelles in detailed.
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Renaissance Architecture: A Journey from Faith to Humanism
GDM (1) (1).pptx small presentation for students
VCE English Exam - Section C Student Revision Booklet
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Computing-Curriculum for Schools in Ghana
Microbial diseases, their pathogenesis and prophylaxis
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Basic Mud Logging Guide for educational purpose
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Pre independence Education in Inndia.pdf
Ad

Googlecolab1 tutorial for data science practise

Editor's Notes

  • #3: Keras : open source library for network Pytorch: open source library for ML Open CV: open source library of intel for function programming به طور پیش‌فرض Tensorflow و بسیاری از کتابخانه‌های دیگر مثل numpy و sklearn و… روی آن نصب شده است و شما میتونید به پیاده‌سازی مدل‌هاتون بپردازید.
  • #4: Google one:provide100 gigabytes, 200 gigabytes, 2 terabytes, 10 terabytes, 20 terabytes, and 30 terabytes
  • #5: App folder in drive
  • #11: به راحتی میتونید در کولب دستورهای مختلف از جمله pip , apt-get, ls, cd, و… را اجرا کنید. فقط کافی است قبل از دستور مورد نظرتون علامت !‌ رو قرار بدهید.