Questions tagged [colab]

Google Colab is an online browser based python notebook/execution environment similar to Jupyter Notebooks.

Google Colab is an online browser based python notebook/execution environment similar to Jupyter Notebooks. Some of its benefits are that it requires no configuration (popular packages like numpy, pandas, and matplotlib are already installed), users can leverage Google's GPUs, and notebooks can be easily shared. Access to Google's accelerated hardware (GPUs and TPUs) is one of the main reasons that Colab is so popular among academics and practitioners alike.

68 questions
23
votes
6 answers

Uploading images folder from my system into Google Colab

I want to train a deep learning model on a dataset containing around 3000 images. Since the dataset is huge, I want to use Google colab since it's GPU supported. How do I upload this full image folder into my notebook and use it?
15
votes
3 answers

How to automatically mount my Google Drive to Google Colab

I have recently discovered Google Colab and I am wondering if there is an option to permanently authorize Google Colab to access and mount my Google Drive. from google.colab import drive drive.mount('/content/drive') Go to this URL in a browser:…
Georgi Stoyanov
  • 253
  • 1
  • 2
  • 5
10
votes
3 answers

Kaggle notebook Vs Google Colab

What are the major differences between Kaggle notebook and Google Colab notebook? To work on a dataset my first step is to start a Kaggle notebook but then I cant help thinking what could be the advantage of using Colab notebook instead. I know few…
ashraf
  • 101
  • 1
  • 1
  • 3
8
votes
1 answer

How to download dynamic files created during work on Google Colab?

I have two different files and on the first, I tried to save data to file as: np.save(open(Q1_TRAINING_DATA_FILE, 'wb'), q1_data) On second file, i'm trying to load it the same way using: q1_data = np.load(open(Q1_TRAINING_DATA_FILE, 'rb')) I then…
7
votes
3 answers

Alternatives with better GPU than Google Colab Pro

I am currently running/training MAchine learning models that are very GPU expensive, Google Colab Pro is not giving me enough GPU/RAM Is there any alternatives with better GPU and more RAM than Google Colab Pro??
The Dan
  • 221
  • 1
  • 2
  • 8
5
votes
3 answers

Very Fast Training After First Epoch

I trained an InceptionV3 model using plant images. I used Keras library. When training was started, first epoch took 29s per step and then other steps took approximately 530ms per step. So that made me doubt whether there is a bug in my code. I…
tkarahan
  • 482
  • 1
  • 5
  • 14
4
votes
1 answer

NLP: what are the advantages of using a subword tokenizer as opposed to the standard word tokenizer?

I'm looking at this Tensorflow colab tutorial about language translation with Transformers, https://www.tensorflow.org/tutorials/text/transformer, and they tokenize the words with a subword text tokenizer. I have never seen a subword tokenizer…
zipline86
  • 399
  • 1
  • 5
  • 13
4
votes
1 answer

How to cache GridSearchCV optimizer result in Google Colab?

I have to execute GridSearchCV() cell every time I reload the page and it takes a lot of time. Is there a caching mechanism which stores the GridSearchCV result so that I can use it without executing the cell on the reload? Code: neigh_clf =…
4
votes
1 answer

How to save google colab notebook outputs and variables

I want to save variables and outputs in text file with colab! Any bright idea?
mj.beyrami
  • 41
  • 1
  • 1
  • 2
3
votes
3 answers

How do I download a Google Colab notebook?

I have to download code written in a Google Colab notebook, because I need to send it via email. How do I do this?
J.D.
  • 941
  • 6
  • 20
  • 33
2
votes
1 answer

Notebook for data science

I'm searching for an online Jupiter notebook environment that allows collaborating in real-time. I've found that I've choice from two services Deepnote.com and DataLore by JetBrains. I have little experience with Deepnote and it starts to perform…
Igor Igor
  • 157
  • 3
2
votes
1 answer

How to import large datasets into Google Colab?

Does anyone know a (free) method for importing large datasets into Google Colab, of multiple GB? Github is severely limited, uploading a folder to google drive takes a long time.
Finn Williams
  • 451
  • 1
  • 7
  • 17
2
votes
1 answer

Google Colab conda packages permanently installation

I want to install some conda packages on Google Colab. Installation done successfully, but it wont detect it when we restart the new Colab session. I followed the link…
vipin bansal
  • 1,282
  • 11
  • 19
2
votes
1 answer

Colab can not connect to GPU from a python file

I am trying to run a github deep learning repository in Colab but I can not connect the python files to colab GPU. I can connect to GPU when writing a script in the colab notebook e.g. when I run this cod from a notebook cell : import os,…
Ibraheem
  • 23
  • 4
2
votes
1 answer

How to use Kaggle Api in Google Colab for directly using dataset?

I know that we can use Kaggle's api directly in google colab which downloads the dataset. The commands are : !mkdir .kaggle !echo '{"username":"somename","key":"apikey"}' > /root/.kaggle/kaggle.json !chmod 600 /root/.kaggle/kaggle.json !kaggle…
1
2 3 4 5