Category "google-colaboratory"

matplotlib plotting is not working in google colab

I wanted to use matplotlib in colab but it didn't work. As this link says I tried both %matplotlib inline and %matplotlib notebook but they both didn't work. Bu

Unrecognized runtime "julia"; defaulting to "python3"

I am trying to run the Julia template in Google Colab, but the first code block throws the following warning: Unrecognized runtime "julia"; defaulting to "pytho

Increasing Colab Pro runtime limit

I'm using Colab Pro and I have no issue with the RAM when I'm using either GPU or TPU. The only problem is that my running usually takes more than 12 hours and

How to upload a zip file from a google drive in colab using zip file link

I have a zip file(files.zip) in my google drive. This zipped file is being used in a shared colab file. I want to write a program such that this zipped file is

TypeError: Invalid text_input type <class 'pandas.core.frame.DataFrame'> (required str or OrderedDict)

from textattack.augmentation import EasyDataAugmenter eda=EasyDataAugmenter() eda.augment(train) Error on this code The "train" data type is dataframe. and the

Google Colab code change always produces "TabError: Inconsistent use of tab and spaces in indentation"

When I make even a simple change in a file checked out in /root/model/ in Google Colab environment Intro, I get "TabError: Inconsistent use of tab and spaces i

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,

How to do block-comments in Google Colab on a Mac with a non-American keyboard?

I want to do block-comments in Colab using a Mac laptop (Big Sur), so I had a look here: Is it possible to do block-comments in Google Colab? Ctrl+/ does not wo

Google Colab GPU RAM depletes quickly on test data but not so on training data

I am training my neural network built with PyTorch under Google Colab Pro+ (Tesla P100-PCIE GPU) but encounters the following strange phenomenon: The amount of

How to save the model weights after running train_detector in mmdetection?

cfg.optimizer.lr = 0.02 / 8 cfg.lr_config.warmup = None cfg.log_config.interval = 600 # Change the evaluation metric since we use customized dataset. cfg.evalua

Cannot compile nms_cuda in mmdetection using colaboratory

/usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:262:30: note: declared here DeprecatedTypeProperties & type() const {

How can I use Python 2 on Google Colab?

How can I use the earlier version of Python i.e version 2.x? Under the 'change runtime' option - I can see the option for selecting hardware accelerator.

I'm Getting Ngrok Error 6022 after doing everything properly

You can refer to my images for details. This is the code I'm running on colab: from google.colab import drive drive.mount('/content/drive') cd /content/drive/M

CNN In Google Colab

I have a CNN project, I want to upload images dataset from my local files, How can I do that? and is there an esier way to import dataset to google colab (e.g.

How to run a Python script in a '.py' file from a Google Colab notebook?

%%javascript IPython.OutputArea.prototype._should_scroll = function(lines) { return false; } %run rl_base.py I run this giving error saying rl_base.py fi

Where to find the existing package installed in the google Colab

I want to check if some packages are installed in the Colab. What is specific folder for storing the installed packages (e.g., keras)?

for printing image the following error is hapening

CODE import numpy as np import cv2 from google.colab.patches import cv2_imshow img=cv2.imread('/gdrive/My Drive/Colab Notebooks/merlin_190860876_3e2e2660-237f-4

Colab Pro: using GPU crashes the session

I have a Google Colab subscription to use its GPU and to fasten the training of my model. When I ran the code it works for some blocks and then it stops and say

Google colab : How can i mount two google drive accounts?

I have two google accounts each one contains part of my data and i can,t include the data into one drive because of the size limit. So, I want to know if there

how to plot input and output shapes on top of each other using polt_model in keras

I want to plot my model using Keras.utils.plot_model function. my problem is that when I plot the model, the input and output shapes do not place on top of each