Skip to content
Advertisement

Tag: google-colaboratory

Stylegan2-ada tfrecords – ValueError: axes don’t match array, images will work one run and not work the next

I’m working on training a GAN through Google Colab with a dataset of photos I scraped from Wikiart and converted to 1024×1024, but keep getting this error when creating the tfrecords: I set it to print out what files it would stall on, and began taking those out of the data set; but what it stalls on seems completely random.

Running .EXE or Perl file on Google Colab

I want to process a set of HDR files with an Executable (e.g., falsecolor2.exe) file on google colab. The source file is here: https://github.com/mostaphaRoudsari/honeybee/blob/master/resources/falsecolor2.exe?raw=true sample HDR files: http://www.anyhere.com/gward/hdrenc/pages/originals.html The executable takes an HDR file with some arguments and generates a new HDR file. On my local machine and drive, the following code works OK: I am not sure how to

How can I get this POST request to execute in Python using Google Colab. I am currently getting a 400 response code

I am trying to extract information for all the jobs on this website: https://www.americanmobile.com/travel-nursing-jobs/search/ Looking at the network activity tab, it looks like all the data I need comes from a POST request made here: https://jobs.amnhealthcare.com/api/jobs//search. I have attached an image that may help confirm exactly what I am referencing. example_1 I wrote the following code in Google Colab to

Tensorflow example works fine on colab, but gives nan while running on jupyter lab

After working with the tensorflow’s example tutorial on colab: Basic regression: Predict fuel efficiency, which can be found here: https://www.tensorflow.org/tutorials/keras/regression. I’ve been trying to run this example on jupyter notebook via anaconda in order to be able to run it offline too. The code that one can find on the link works fine on google colab, but when I try

Is there a change for reading the published CSV from Google Sheets in Google Colab?

I have been using a file from Google sheets, published as CSV, and reading it with Pandas, to make the dataframe, but today stopped working here it is the error output: 2155 def read(self, nrows=None): 2156 try: -> 2157 data = self._reader.read(nrows) 2158 except StopIteration: 2159 if self._first_chunk: pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader.read() pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._read_low_memory() pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._read_rows() pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._tokenize_rows()

CUDA out of memory in Google Colab

I am trying to replicate a GAN study (Stargan-V2). So, I want to train a model (using less data) in Google Colab. But, I got this problem: I changed batch_size but It didn’t work for me. Did you have any idea? How can I fix this problem? Paper: StarGAN v2: Diverse Image Synthesis for Multiple Domains Original github repo: stargan-v2

Google Colab TPU Version

How do I print in Google Colab which TPU version I am using and how much memory the TPUs have? With I get the following Output Output I want something like [IN] print(‘tpu.version:’, tpu.version) [OUT] tpu.version: Cloud TPU v3. I hope someone can help me. Looking forward to an answer! Answer This answer should have what you’re looking for. Output

Advertisement