Questions tagged [colab]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

ResourceExhaustedError in google colab [closed]

Trying to implement convlstm2d on video for human action recognition on colab, all the same post of ResourceExhaustedError did not really help me. My data shape ...
1
vote
1answer
23 views

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 ...
0
votes
0answers
12 views

Automatic EDA for BIG Data

I have data set of cicids2017 which in total has 2830743 rows and 79 columns. Since my local jupyter was crashing a lot, SO I am using Google Colab. But Google Colab is also crashing if some big ...
0
votes
0answers
20 views

Hide element in the table of contents in google colab

How do we hide an element from the table of contents in google colab? I want to hide some elements of the table of contents but keep others. In the example, I would like to hide SubSubtitle 2.1 but ...
0
votes
1answer
39 views

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 ...
0
votes
0answers
9 views

Is there a way to slow-down a computation but not get Session crash error?

I need more memory to run a code snippet but I am getting Session crashed error. I am ready to compromise on run time. Can something be done? P.S: I am using Colab 25 gb RAM
0
votes
0answers
42 views

Visualizing Faster R-CNN Result

I'm a newbie in computer vision and trying to learn object detection, and the first task my supervisor gave me was to create object detection model using Faster R-CNN. After days and nights of ...
2
votes
0answers
137 views

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 "#https://stackoverflow.com/...
0
votes
0answers
31 views

Phython Stack Average Model - Keras: Cannot clone object '<keras.engine.sequential.Sequential object at 0x7fd1e0b97940>'

I am trying to apply a stacked average model from Keras to a dataset, using Python in Colab. I keep getting the error message below. I am wondering if maybe I am using the wrong library? Thank you ...
0
votes
0answers
60 views

How to read local image directory in Google Colab?

I am doing image classification and prediction deep learning models using CNN and I want to use Google Colab's online GPU. But I have a very big dataset and is there any way to read the images which ...
0
votes
1answer
117 views

What is the efficient way to use apply method in column of pandas Dataframe for large dataset?

I have a dataset of approximate 1 hundred thousand records. I want to use apply method in each of the records for further data processing but it takes very long time to process (As apply method works ...
0
votes
0answers
51 views

Can we enable spell checker for markdown cells in google colab in any way? Please help

How can we enable spell checker in google colab for markdown cells? Note: colab uses linux OS
0
votes
0answers
10 views

Downloading a large dataset in google colaboratory

I have a link of a dataset, it is 22 gig but in the collab, there is just 32 gig free disk space. The data is in the zip file and after unzipping collab show crash massage. How can I solve this ...
1
vote
0answers
232 views

setting class weights for imbalanced dataset in tensorflow [closed]

I have 24 classes in my dataset and I am trying to set class weights in the following way: ...
2
votes
1answer
59 views

Colab can not connect to GPU from a python file [closed]

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 ...
1
vote
1answer
46 views

ValueError: Error when checking input: expected conv2d_25_input to have shape (144, 256, 3) but got array with shape (256, 144, 3)

I have built a CNN with images of size 720 (height) and 1280 (width). I attempt to re scale images to 144x256. However, I receive this error: ...
0
votes
0answers
102 views

Using Images uploaded in google drive in Colab

Does anyone know how to use already uploaded images in Google Drive to colaboratory for creating a trainloader? I'm creating the trainloader and model in Pytorch
0
votes
0answers
44 views

Can tf.keras.utils.get_file(), be used to load local zip files? [duplicate]

I have zip file containing 4 image folders. The tutorial I followed on Google Colab uses a similar zip file but the file is hosted online and the link is given as the value of ...
1
vote
2answers
135 views

What interactive graph package do you use for timeseries data?

I have millions of sensor readings taken over time. I'd like to create an interactive plot in Google colab where I can easily zoom in on sections. I've done something similar with the Plotly package....
1
vote
0answers
1k views

how to resolve this error in Tesseract : (2, 'Usage: pytesseract [-l lang] input_file') [closed]

pytesseract.pytesseract.tesseract_cmd = r'/usr/local/bin/pytesseract' img = Image.open("/content/drive/My Drive/abc.jpg") print(pytesseract.image_to_string(img)) ...
0
votes
0answers
235 views

Running python project with several .py on Google Colab

Running python project with several .py on Google Colab On Google colab, I tried to execute a python project which has several python files (.py). I have saved all files in my google drive and ...
2
votes
0answers
2k views

How do I download a Google Colab notebook?

I have to download a code written in Google Colab notebook because I need to send it via email. How do I do this? Thanks.
1
vote
1answer
24 views

Where do I find the .csv file for the submission after creating it?

I am making a submission of a classificaition problem with CNN on Google Colab. So I have arrived at doing this: subm.to_csv('submission.csv', index=False) so in ...
3
votes
2answers
2k views

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. ...
0
votes
1answer
4k views

How to save dynamic files from colab to Google Drive?

I have processed some png images on Colab and saved them in the Colab Directory. Now I want to save these images from Colab to Google Drive. How can I do this?
1
vote
1answer
31 views

Problem importing dataset in zip format

I am trying to import a image dataset in Google Colab in order to do image classification. The dataset is in my Google drive, so I do the following: ...
1
vote
1answer
6k views

Not able to connect to GPU on Google Colab

I'm trying to use tensorflow with a GPU on Google Colab. I followed the steps listed at https://www.tensorflow.org/install/gpu I confirmed that gpu is visible and CUDA is installed with the ...
0
votes
0answers
442 views

why evaluate_generator accuracy too much by using flow_from_directory with shuffle true?

i am using tensorflow and keras on colab i train with shuffled data but i met this strange accuracy with evaluate_generator with my training set that has 95% acc if i did not shuffle my data with ...
1
vote
1answer
35 views

How reproducible should CNN models be? [closed]

I want to train several CNN architectures with Google Colab (GPU), Keras and Tensorflow. Since the trained models are not reproducible due to GPU support, I would like to train the models several ...
1
vote
1answer
3k views

keras UserWarning: The input 1303 could not be retrieved. It could be because a worker has died

I am trying to train an autoencoder CNN on Google Colab using keras. I have mounted my Google Drive which contains all training data. The training uses six workers and the data is loaded by the ...
0
votes
1answer
573 views

Upload 'tsv' file to Google Colab / Jupyter Notebook

TSV(Tab separated Value) extension file can't be uploaded to google colab using pandas Used this to upload my file ...
4
votes
1answer
407 views

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 ...
0
votes
2answers
38 views

I am getting different mean_absolute_error when i retrain my model everything same

I have set my numpy random seed to 0. I am training on colab and using keras. I didn't change anything. I just re-ran my cell and the val_absolute_error changed. Code: ...
2
votes
2answers
198 views

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 ...
2
votes
1answer
363 views

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 : ...
1
vote
0answers
18 views

Google Colaboratory - Won't Start Error

Has anyone else encountered this error? I am teaching a business analytics class with python this semester and Colab has been absolutely fantastic, yet one student is getting the following error. ...
2
votes
0answers
441 views

get a can't set attribute while using GPU in google colab but not not while using CPU

Hi i was learning to create a classifier using pytorch in google colab that i learned in Udacity. here is the link so i was loading data in the dataloader and when i used cpu it loaded and displayed ...
3
votes
1answer
23k views

How to save google colab notebook outputs and variables [closed]

I want to save variables and outputs in text file with colab! Any bright idea?
1
vote
1answer
505 views

How to upload a saved file from google colab to a site such as kaggle or github? [closed]

We are able to load a file from a site such as kaggle and git hub to google collab, we apply the below code to download from other sites into google colab: ...
1
vote
0answers
1k views

Google team drive and google colaboratory uploading/downloading files [closed]

So I have google Team drive set-up with all the permissions. 1. How I can access google team drive in google colaboratory? I think i'm missing something... it's always showing me output of my drive 2. ...
19
votes
6answers
76k views

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 ...
5
votes
1answer
30k views

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 ...