Category "google-colaboratory"

google.colab.drive is unsupported in this environment

I am using Colab instance that is connected to Google Cloud to train a neural model using NVIDIA A100-SXM4-40GB. I want to load my files from my Google Drive bu

Training Yolact on Google Colab+ without timing out

I want to train Yolact on a custom dataset using Google Colab+. Is it possible to train on Colab+ or does it time out to easily? Thank you!

TypeError: 'ZipFile' object is not callable

I am trying to save the new cropped brain tumor images into the subfolders of TRAIN_CROP, TEST_CROP, and VAL_CROP in the main folder of TRAIN, TEST, and VAL. x

Running the same code yields different results on Colab and on local. No randomization or NN training involved

My code yields different results in the local terminal and on Google Colab. However, if I run the same code on Colab but with a terminal command (i.e. !python t

Flush local disk of Google Colab to Google Drive

I am downloading a 350 GB dataset to Google Drive by setting my current working directory to a folder on Google Drive in Google Colab, and using the curl comman

Error while using mex file in Colab with Octave

I am trying to use MATLAB in Colab. MATLAB is run in Colab through Octave. I have to use the MR8fast() filter, which in turn uses anigauss.c. I could successful

Google colab access Machine's local drives directly using Os.listdir

I am new to google colab and i am figuring out if google colab is able to access files on my computer's cdrive directly. import os path = 'C:\\Users\\guest\\D

How can I fix this "dpkg" error while installing CUDA on google colab

I want to run CUDA code on google colab. For that I am following the below steps but I am not able to install CUDA packages. Step 1: Removing previous CUDA vers

Colab: Importing old modules from tf.keras 2.4 fails; importing from Keras 2.4 works, but leads to mixing tf and tf.keras

I'm trying to modify a jupyter notebook to run on colab. It's from a somewhat older repo with known compatibility issues for tensorflow/keras versions after ~2.

Trying to change Google Colab font family to Arial

I am trying to use the Arimo-font in Google Colab. I´ve been using some code that I got from a SO post: from matplotlib import font_manager as fm, pyplot

Can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu()

My code in colab worked in January and now it doesn't. It's a Style Transfer program using pytorch (https://github.com/leongatys/PytorchNeuralStyleTransfer). Th

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