Member-only story
Host & load data in your google collab in 3 easy steps
Host up to 50 GB of data in the cloud and load it automatically in your google collab
In this guide, I will explain how you can host your data and let it run in google collab.
This could have the following applications:
- Deep learning model weights
- Datasets
- Images
- …
Step #1: Create an account at an online hosting platform
Personally, I would recommend Mega. Their free users plan offers up to 50 GB online cloud space which is unseen at their competitors.
You can create an account via their website.
Step #2: Upload your file & generate a link
Drag & drop your respective files to your account. Once uploaded, you can right click on your file and generate a link. Use the “link with key” option.
Step #3: Adjust the link and paste in your google collab
Just copy & past the link in the google collab will not work. We first have to make some minor adjustments or it will not load properly.
- Replace “file/” with “#!”
- Replace “#” with “!”
Don’t forget to install the megatools package: “!sudo apt-get install megatools”
The file will now be downloaded in your current working directory.
To check which directory this is, you can run “os.getcwd()”.