Google Colab is very slow compared to my PC

I've recently started to use Google Colab, and wanted to train my first Convolutional NN. I imported the images from my Google Drive thanks to the answer I got here. Then I pasted my code to...

How to use Visdom (Tensorboard for PyTorch) with Google Colaboratory?

I would like to use visdom when training my networks using Google Colaboratory. This topic explains how to use Tensorboard thanks to ngrok : https://stackoverflow.com/a/48468512/9686730 Is there...

LightGBMError: b'No OpenCL device found'

I want to train LightGBM with GPU on my dataset using Google colaboratory (I also select runtime Python3 and GPU). To do this I used follow chunk of code: !apt-get -qq install...

accessing "Shared with me" with Colab

I want to get access to the files in the Google Drive's "Shared with me" directory. In the Colab python notebook the following commands: import os from google.colab import...

FileNotFoundError: [Errno 2] No such file or directory google colab

I am getting this error everytime running python code on local data from my drive I am using the code below to import the data from my drive from google.colab import...

In Colaboratory, CUDA cannot be used for the torch

The error message is as follows: RuntimeError Traceback (most recent call last) <ipython-input-24-06e96beb03a5> in <module>() 11 12 x_test = np.array(test_features) ---> 13 x_test_cuda...

How to check the region where your GoogleColab is running?

Following this tweet I tried without luck to use this GPU on Google Colab. I'm wondering if this is due to the region where my notebook is running but I don't have idea how to check this. Am I...

Can't find kaggle.json file in google colab

I'm trying to download the kaggle imagenet object localization challenge data into google colab so that I can use it to train my model. Kaggle uses an API for easy and fast access to their...

Unable to load the spacy model 'en_core_web_lg' on Google colab

I am using spacy in google colab to build an NER model for which I have downloaded the spaCy 'en_core_web_lg' model using import spacy.cli spacy.cli.download("en_core_web_lg") and I get a...

How to prevent Google Colab from disconnecting?

Q: Is there any way to programmatically prevent Google Colab from disconnecting on a timeout? The following describes the conditions causing a notebook to automatically disconnect: Google Colab...

how play mp4 video in google colab

I have a video.mp4 in content/video.mp4 if I wanted to play the video in google colab without downloading , ¿what code I should use to open a kind of video player in my jupyter notebook?

Numbered headings and table of contents in Google Colab

Is there a way to enable numbered headings and table of contents in Google Colab? Similar question: markdown - Numbered headers in jupyter notebooks - Stack Overflow for Jupyter Notebook (which...

How can I run shell (terminal) in Google Colab?

I know that I can call !ls to issue ls command to shell. But I want features like history or tab-completion. Is it possible to do so in Google Colab?

Colab tells me to create a bucket, but where?

When using TPUs on Google Colab (such as in the MNIST example), we are told to create a GCS bucket. However, it doesn't tell us where. Without knowing the region/zone of the Colab instance, I am...

PyTorch Geometric CUDA installation issues on Google Colab

I was working on a PyTorch Geometric project using Google Colab for CUDA support. Since it's library isn't present by default, I run: !pip install --upgrade torch-scatter !pip install --upgrade...

Unable to init server: Could not connect: Connection refused. YOLO on Google Colab

I'm trying to test out YOLO on google colab for the first time and keep running into this odd error: This is the line of code that I run: !./darknet detector test data/obj.data...

ModuleNotFoundError: No module named 'pyinputplus'

When i try to run this code in google colab it show module not found error. This was my code import pyinputplus as pyip response = pyip.inputNum('Enter num: ')

pyodbc on google colab

I am trying to connect to my SQL server on google colab by using pyodbc. However, it tells me that I cannot find the driver. Code to install packages (I replaced IP, port and password with x) ```...

Unhide all cells in Google Colab

Is there a way to unhide all hidden cells in a Jupyter notebook on Google Colab? It appears that google colab hides cells automatically. Is there a way to unhide all cells? It's a pain to click...

tensorflow error: "No OpKernel was registered to support Op 'TPUReplicatedInput'" when restoring model

(Novice question; sorry in advance.) I have a pretrained (BigGAN) tensorflow model that another user developed to create images, and I would like to use it to generate new images. (If it helps to...

how do i import Image from google drive to google colab

i have mounted the google drive to my colab notebook from google.colab import drive drive.mount("/content/gdrive") I can import csv files through it in my case df =...

Trying to Load hrbrthemes Package, but Fail

I want to make some graphics to analyze Covid-19 with ggplot and hrbrthemes in R Google Colaboratory. But, when load the hrbrthemes package, I found the error like this Error in...

Changing same word in code at the same time with google colab

I'm using colab to work on python projects and was wondering if there was a way to highlight a certain text and change that text for all of the other places in the code. Example: variable =...

How to use colabctl to run colab notebooks automatically?

I need to run a colab notebook everyday so i've seen I can do this automatically with colabctl, but i've had some truble unterstanding how to do so. What i've done: change keyboard shortcuts,...

CUDA error: device-side assert triggered on Colab

I am trying to initialize a tensor on Google Colab with GPU enabled. device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') t = torch.tensor([1,2], device=device) But I am getting...

How to clear Colab Tensorflow TPU memory

I am executing model for several folds. After each fold I want to clear the TPU memory so that I don't get OOM error. Full trace of the current error. ResourceExhaustedError ...

'/bin/bash: conda: command not found' in Google Colab

I was trying to activate an environment by !conda activate <environment name> in Google Colab, but it returned error: CommandNotFoundError: Your shell has not been properly configured to use...

Insert a geovoronoi library polygon to folium map in Python

To create a Voronoi polygon with geovoronoi lib i use: polyShapes, puntos = voronoi_regions_from_coords(coords, milagroShape) coords is a geoDataFrame object that it contains map´s locations and...

ImportError: cannot import name 'BigBirdTokenizer' from 'transformers' (/usr/local/lib/python3.7/dist-packages/transformers/__init__.py)

In my env(colab) I need the following library. Here is the list : !pip install --quiet transformers==4.1.1 !pip install --quiet pytorch-lightning==1.1.3 #!pip install pytorch-lightning !pip...

Google colab change variable name everywhere in code cell

When I highlight a variable within a cell in colab, all the instances of that variable shines up. Is it possible to change all these instances of the variables at the same time and if such,...