Category "google-colaboratory"

TensorFlow TypeError: 'BatchDataset' object is not iterable / TypeError: 'CacheDataset' object is not subscriptable

I'm following the TensorFlow starter guide. It specifically said to enable eager execution on the sample project for iris (flower) classification. Import th

Installing a R package in google colab

I am doing scientific research, and I am having some trouble using an R package to treat my data. I program in python using Google Colab, and I don't know much

Google Colab running any cell received javascript related errors

Received a browser white popup saying when executing any cells: Error Could not load the JavaScript files needed to display output. This is probably because yo

Input/output error while using google colab to read Google dirve files

I am training my model with colab. I have encountered this error more than once, when I use the enumeration function in colab to iterate my training data on Goo

Mount multiple drives in google colab

I use this function to mount my google drive from google.colab import drive drive.mount('/content/drive', force_remount=True) and then copy files from it lik

Test if notebook is running on Google Colab

How can I test if my notebook is running on Google Colab? I need this test as obtaining / unzipping my training data is different if running on my laptop or on

Import data from shared Google drive into Google Colaboratory

How can I view files that exist in a shared folder on Google Drive? I have tried: from google.colab import drive drive.mount("/content/gdrive") os.listdir("/co

Keras model - high accuracy on natively executed code, fails to learn in colab

I am doing classification of citrus leaves dataset. I came up with a very basic model and ran it in Jupyter notebook on my machine, using anaconda. Exact same m

Is Google Colab notebook sharing my Drive data with the notebook author?

I am following an online tutorial and the tutor has provided a Google Colab notebook as a supplement. But whenever I run any of the cells from the notebook, I a

textclips in moviepy on google colab (imagemagick error)

I'm trying to add text to a moviepy video, but I'm having trouble getting imagemagick to work on google colab. The code: !apt install imagemagick from moviepy.e

Import Image from Google Drive to Google Colab

I have mounted my Google drive to my colab notebook: from google.colab import drive drive.mount("/content/gdrive") I can import csv files through it, in my cas

ModuleNotFoundError: No module named 'fastai.vision'

I am trying to use ImageDataBunch from fastai, and it worked fine, but recently when I ran my code, it showed this error ModuleNotFoundError: No module named 'f

Quick Docstrings in Colaboratory

I'm starting to play with Colaboratory but I've noticed that shift-tab doesn't pop up Docstrings for functions as it does in Jupyter. Is this functionality abs

How to Upload Many Files to Google Colab?

I am working on a image segmentation machine learning project and I would like to test it out on Google Colab. For the training dataset, I have 700 images, most

Running Django on Google Colab

I was trying to run the Django on Colab, by following the instruction here, however, after the !python manage.py runserver step, I tried to access the server

Display GPU Usage While Code is Running in Colab

I have a program running on Google Colab in which I need to monitor GPU usage while it is running. I am aware that usually you would use nvidia-smi in a comman

Error with DVC on Google Colab - dvc.scm.CloneError: Failed to clone repo

I'm having a problem trying to run "dvc pull" on Google Colab. I have two repositories (let's call them A and B) where repository A is for my machine learning c

Is it possible to do block-comments in Google Colab?

In Jupyter Notebook, you can toggle/comment a block of selected code with Ctrl + /, but this doesn't work in Google Colaboratory notebooks. Is there a way to co

Python OpenCV - How to save a 5 channel image

I'm using Google Colab with Python 3 and I need to merge 3 images to make a new one with 5 channels, but i get this error: error: OpenCV(4.1.2) /io/opencv/modu

Google Colab: Run all cells until the current one

I would like to know how to run all cells (from the beginning of the notebook) and stop at the cell that's selected (do not want to run ALL cells..) on Google-C