Questions tagged [google-colaboratory]
Google Colaboratory is a research tool for machine learning education and research.
6,620
questions
0
votes
1
answer
29
views
Running python 3.9 code on python 3.7 in google colab [duplicate]
I'm trying to run the following python code on google colab with python 3.7 version but it show's error (the error's syntax is below the code). I think the python code I'm running is written in python ...
0
votes
0
answers
13
views
Will Google Colabs Ban if we use it for training on the same task continuously?
I want to train the GAN model that I'm working on with google colabs, but on certain training steps, the colabs runtime runs out long before fulfilling the desired step. So I'm planning to set the ...
-1
votes
0
answers
12
views
Gradients do not exist for variables ['top_bn/gamma:0', 'top_bn/beta:0'] when minimizing the loss on Google Colab
Does anyone know how to fix this on Google Colab?
Gradients do not exist for variables ['top_bn/gamma:0', 'top_bn/beta:0'] when minimizing the loss. If you're using \model.compile()`, did you forget ...
0
votes
1
answer
20
views
Trying to download a file from google colab - Showing index error
from google.colab import files
filename= os.listdir('/content/Real-ESRGAN/results')
files.download('/content/Real-ESRGAN/results/'+filename[0])
Showing this error msg
IndexError ...
0
votes
0
answers
17
views
Python: How to save file from Google Colab to a shared Google Drive?
I would like to save the files to my friend's Google Drive which anyone on the Internet with the link can edit. I had a csv file generated from google Google Colab and I want to directly save it to a ...
0
votes
0
answers
32
views
How to convert numpy array to a tensor in this case?
I have used this code previously, and it worked fine, but I am trying to differentiate between two variables, male & female in this case. I have a .csv file of names that generally correspond to ...
0
votes
0
answers
16
views
How do you make your Google Colab code trusted in my personal github?
How do I make my google Colab trusted in my github? Because my file isn't trusted, none of my maps are displayed. I know Jupyter Notebook has a button for it. Is there a way to make it so that my file ...
0
votes
0
answers
17
views
How to visualise .obj files in colab?
I have a generated obj file which I want to visualise in google colab.
What's the easiest way to visualise it directly in google colab?
A (admittely mild) google search did not return much...
0
votes
0
answers
5
views
Locally Work but on ngroke server web not working what is the solution?
I am trying to deploy my jupyter notebook code on web but the server starts and generates the link but it will show me the error like this "Failed to complete tunnel connection"
The ...
0
votes
0
answers
14
views
Run pandas read_gbq() with for loop
I am trying to run read_gbq() function to extract data from BigQuery, but I want to do it using a for loop and using a defined list to run the SQL. Please see the code below. I am running it on Google ...
0
votes
0
answers
17
views
Errors in loading state_dict (size mismatch) (Licence Plate Recognition)
I was trying to train the model on custom dataset following instructions from [this issue][1] (deleted LPRDataLoader.getitem and modified CHARS, though did not change T_length).
I am running the code ...
0
votes
0
answers
20
views
Way to print entirety of error message cut off in Google Colab?
The error is with the Jax scan function, and gives this message:
TypeError: scan carry output and input must have same type structure, got PyTreeDef((CustomNode(<class 'brax.experimental.braxlines....
0
votes
0
answers
14
views
cannot train nlu.yml file rasa in google colab
i'm triying to train nlu model in colab, then i gets this error. I use rasa 2.6.3
ValueError: Unknown data format for file /content/drive/MyDrive/my_project/data/nlu/nlu.yml
here is my code
# Import ...
1
vote
1
answer
26
views
Set decimals in describe() function - pyspark
Is there any way to set decimals in the describe() function? I want a result that shows 2 decimals.
1
vote
1
answer
47
views
How to use p5/js serial library in google Colab
I am trying to use p5.SerialPort in google colab.
Using p5(link ahead) everything works fine, I think my problem is that the libraries are not imported properly because the code doesn't run.
it's ...
0
votes
0
answers
11
views
Jupyter notebook stopped working after installing google colan
I had Jupyter notebook installed on my local and I was trying to establish a connection between python and BQ, for which google colab was needed but as soon as I installed google colab, jupyter ...
0
votes
1
answer
13
views
module 'tensorboard.summary._tf.summary' has no attribute 'import_event'
I'm playing around a code from a book, however, there is an error that I can't manage to solve. This is my code:
from tensorboard.plugins.hparams import api_pb2
from tensorboard.plugins.hparams import ...
0
votes
0
answers
17
views
ValueError: Input 1 of layer "generator" is incompatible with the layer: expected shape=(None, 128), found shape=(32, 20)
I'm trying to run a program using my own data that contains 4 features and 11599 rows.
I get this error: ValueError: Input 1 of layer "generator" is incompatible with the layer: expected ...
0
votes
0
answers
8
views
couldn't open file: /mydrive/yolov4/training/yolov4-custom_last.weights / Implementing Yolov4
I am trying to implement YOLOv4 with this command
!./darknet detector train data/obj.data /content/drive/MyDrive/yolov4/darknet/cfg/yolov4-custom.cfg /mydrive/yolov4/training/yolov4-custom_last....
3
votes
1
answer
31
views
Why do I get the 'loop of ufunc does not support argument 0 of type numpy.ndarray' error for log method?
First, I used np.array to perform operations on multiple matrices, and it was successful.
import numpy as np
import matplotlib.pyplot as plt
f = np.array([[0.35, 0.65]])
e = np.array([[0.92, 0.08], [...
0
votes
1
answer
18
views
Cannot run Pyomo with Gurobi under Google Colab
I am running an optimization model in colab using Gurobi. But, I got a warning and error message "ApplicationError":
opt = SolverFactory("gurobi")
WARNING: Could not locate the '...
0
votes
0
answers
11
views
NoneType error has no shape error on face mask detection
I'm trying a real-time face mask detection code but I stumbled upon an error in the stream code which reads below. Any idea on the fix? Thanks in advance
print("[INFO] starting video stream...&...
-1
votes
1
answer
16
views
How to cast byte image from google colabs upload to array
So i want to make a function that show a preprocessed version of uploaded images by google.colabs.files.upload() method . But it gives me an error when trying to do some open-cv operations, turns out ...
-2
votes
0
answers
14
views
AttributeError: module 'utils' has no attribute 'deskew' [closed]
I'm trying to train a model on Colab and I got this error
AttributeError: module 'utils' has no attribute 'deskew'
if you have any idea about the issue just let me know, Thank you.
-1
votes
0
answers
14
views
How to increase RAM in a Colab notebook
I was running a Genetic Algorithm based feature selection. It crashes all the time.
-1
votes
2
answers
19
views
python image unable to load using google colab environment FileNotFoundError: [Errno 2] No such file or directory:
I try to load python image in google colab environment. But it's failed due to
FileNotFoundError: [Errno 2] No such file or directory: '/content/gdrive/My Drive/path_to_image/img.jpg'
I already ...
0
votes
0
answers
11
views
Extract pixel values using polygons from time series image collection using Colab
I created a Sentinel Image collection (s7) and applied ee.Reducer.percentile (3month data)
S2_PU_perc = s7.reduce(ee.Reducer.percentile(ee.List([0,25,50, 75,100])))
I now need to extract from this ...
0
votes
0
answers
8
views
How to import OpenSLR(Open Speech and Language Resources) dataset into Colab for Speech To Text?
If There could be direct way of importing those datasets into Colab or downloading each of dataset URL and extracting it .
Link to dataset : Large Nepali ASR training data set
0
votes
0
answers
27
views
Error: Could not locate zlibwapi.dll when doing model.evaluate in keras
Using Google Colab, hosted by my own computer, I trained a image recognition model. I then wanted to load the model and use it in visual studio code, so i saved the model using model.save(directory). ...
0
votes
1
answer
20
views
why "bson" librarye dosen't work in jupyter notebook
I'm trying to read a bson file this is my code:
import bson
with open("D:/rl env/chat_log.bson",'rb') as f:
datas = bson.decode_all(f.read())
note that "D:/rl env/chat_log.bson&...
1
vote
0
answers
26
views
Can't install PyWin32 on Google Colab
I'm trying to run a project on google colab and I need to use PyWin32 (https://pypi.org/project/pywin32/), but I get the following error:
!pip install pywin32
ERROR: Could not find a version that ...
1
vote
1
answer
20
views
cannot import dask_query package in Colab
import dask_bigquery
in colab fails with error message:
Getting No Module named 'dask.layers'
Thanks in advance
-1
votes
0
answers
25
views
Problematic syntax with google colab
I'm facing the following problem.
Google Colab doesn't accept the following syntax:
download: |
import json
from tqdm import tqdm
from utils.general import download, Path
def argoverse2yolo(set):
...
0
votes
0
answers
19
views
dynamically create search space JSON/dictionary using ipywidgets (or similar) in Colab
I'd like to create an interactive interface for defining Ax search spaces using Ax's Service API.
An experiment consists of a search space (parameters and parameter
constraints) and optimization ...
0
votes
0
answers
28
views
Why is Google Colab freezing/hanging despite not reaching resource limits?
Before I paid for Colab Pro, I understandably ran into the resource time limit. When that happened, a message popped up saying as much. However, this is a different problem. (I am also now subscribed ...
-3
votes
0
answers
33
views
Replicate Google Colab Training Environment for Tensorflow Object Detection Api Release 1.13 [closed]
I am trying to perform transfer learning on an SSD mobileNetV2 quant model checkpoints available here, using tensorflow version 1.15.0 as used in this colab tutorial.
It trains successfully on colab ...
0
votes
0
answers
24
views
AnalysisException: Path does not exist: While running github code using colab
I am running a github code for signature detection in google colab and in the code image is read as binary file for further processing using spark. The image is inside a folder which is in the same ...
0
votes
1
answer
36
views
Installing libc6 on Google Colab
Hello i wanted to run Blender K-Cycles on Google Colab but got the following error message
lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found
lib/x86_64-linux-gnu/libc.so.6: version `...
1
vote
0
answers
16
views
Started using mpl_toolkits.basemap, while execution of code jupyter notebook not showing plot but while workin on google colab itis working fine
Code was:
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
plt.figure(figsize=(8, 8))
m = Basemap(projection='ortho', resolution=None, ...
-1
votes
0
answers
15
views
COLAB TO GITHUB TOO LARGE FILE ISSUE
I have used the save a copy in Github feature in google colab to save my ipynb file on github and am getting this error due to large file size enter image description here
I need help regarding this ...
-1
votes
3
answers
33
views
Error while turning a string into a tuple
This is for Jupyter Notebook/Google Colab/Pandas
the full number of my Latitude isn't showing up when I would run the code to convert a strong to a tuple.
Code I ran
#convert LATLNG from string to ...
0
votes
0
answers
11
views
Failing SSD model on Google Colab custom data config error
I'm getting the following error on training SSD on Google colab on a custom dataset:
''''
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/mmcv/utils/registry.py&...
0
votes
0
answers
33
views
FileNotFoundError: [Errno 2] No such file or directory using Google Colab
I´m trying to open up an .XLS file trough GOOGLE COLAB and the GC is outputing the following error: FileNotFoundError: [Errno 2] No such file or directory
Follow below the code:
import pandas as pd
...
0
votes
0
answers
18
views
Graph execution error while bulding an CNN-LSTM binary classification problem
I got this graph execution error after a few epochs. I have run this code previously with different LSTM unit values but now got this error which I am not clear about. I am trying to build a hybrid ...
-1
votes
1
answer
15
views
How to write a file on a particular folder on google colab using Python?
I tried this but it gives me a syntax error.
Here 'win' is the folder and dosa_bce_win.py is the code file I want to write inside this folder.
!mkdir win
%%writefile dosa_bce_win.py
Thanks for the ...
0
votes
0
answers
42
views
Blender on Google Colab doesn´t work anymore - Device does not support queues
I wanted to render something via Google Colab again and get the error message that the device does not support queues. I am using Colab Pro and have been assigned a Tesla T4 GPU which actually ...
0
votes
0
answers
16
views
Yolo v1 single class single box training
I'm rather new to CNNs and Object detection models.
For this reason I'm trying to implement an object detection model based on Yolo v1 from scratch.
My idea is to have S = 7 cells an just B = 1 box ...
0
votes
0
answers
17
views
Force values to print in Google Colab
Was hoping to print the value of the sum of multiplied vectors below.
Is there an easy way to force the output in Google Colab? I am getting <function Tensor.sum> instead of a number.
If you ...
0
votes
0
answers
14
views
Object Detection : Face Mask Detection From TensorFlow notebook on google colab
link to the notebook
https://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/tutorials/load_data/tfrecord.ipynb#scrollTo=HQzaEQuJiW_d
i get this error : NotFoundError: /content/...
0
votes
1
answer
47
views
How to use YouTube API OAuth 2.0 in Google Colab?
I'm trying to use YouTube Data API in Google Colab for retrieve the results of a search.
I'm using the code available in the documentation as a blueprint.
Code:
#!/usr/bin/python
# This sample ...