-
Notifications
You must be signed in to change notification settings - Fork 3
Tutorial to install DeepForest on Google Colaboratory
Google Colab is a free cloud service based on Jupyter Notebook that supports free GPU. Colab provides free GPU Service (with limits). It supports Python 2.7 and 3.6, but not R or Scala yet. There is a limit to your sessions and size. You can create notebooks in Colab, upload notebooks, store notebooks, share notebooks, mount your Google Drive and use whatever you’ve got stored in there, import most of your favourite directories, upload your personal Jupyter Notebooks, upload notebooks directly from GitHub, upload Kaggle files, download your notebooks.
Let's Start :
Step 1: To start working with Colab you first need to log in to your Google account and then follow this link .
Click on New Notebook, and New Notebook will be created. Another way to create New Notebook is to go to your google drive and then click on “new”.
You can rename your notebook by clicking on the name of the notebook and changing it or by dropping the “File” menu down to “Rename.”
Step 2: Setup GPU for running DeepForest: As DeepForest library requires to be run on GPU we need to select it on our Colab Notebook. Go to the “runtime” dropdown menu, selecting “change runtime type” and choose GPU in the hardware accelerator drop-down menu.
Step 3: Mount your Google Drive: Write below lines and run the lines by clicking on the button as shown in below figure, you will successfully be able to connect Google Drive with notebook. We can easily store data in Google Drive and use that whenever needed. To run the cell “Cmd/Ctrl+Enter” command can also be used.
Code :
from google.colab import drive drive.mount('/content/gdrive')
Now let's code to set up DeepForest:
Link for Notebook: Link
Go to this link. You will get a Notebook created by me to implement DeepForest on custom images. You need to create a copy of this notebook and run every cell, line by line. To create copy of given notebook :