google-colaboratory

Add a folder with ~20K of images into Google Colaboratory

醉酒当歌 提交于 2019-11-29 10:22:23
问题 I am working with cat breeds recognition with Keras and try to use Google Colaboratory for training on GPU. When I worked in PyCharm, I used a path to folder with images: data_dir = '//home//kate//Рабочий стол//барахло линух минт//more_breeds_all_new' And I can not understand, how can I download a folder with 19500 images to Colab instead loading pictures there one by one like Google offers in it's notebook. I also have a folder with these images on Google Drive, but I also do not know how to

load image dataset (folder or zip) located in Google Drive to Google Colab?

你离开我真会死。 提交于 2019-11-29 09:07:13
问题 I have a dataset of images on my Google Drive. I have this dataset both in a compressed .zip version and an uncompressed folder. I want to train a CNN using Google Colab. How can I tell Colab where the images in my Google Drive are? official tutorial does not help me as it only shows how to upload single files, not a folder with 10000 images as in my case. Then I found this answer, but the solution is not finished, or at least I did not understand how to go on from unzipping. Unfortunately I

Lifetime of a colab VM?

流过昼夜 提交于 2019-11-29 04:02:10
What's the maximum lifetime of a colab VM if it is left running with the browser window open (and tensorflow running)? Ignore this redundant sentence I created because stackoverflow thinks my question is too short! The maximum lifetime of a VM is 12 hours. Idle VMs time out after 90m. (As you point out, leaving a window open and running a code cell is considered active.) 来源: https://stackoverflow.com/questions/47474406/lifetime-of-a-colab-vm

Google Colab is very slow compared to my PC

烈酒焚心 提交于 2019-11-28 23:17:48
问题 I've recently started to use Google Colab, and wanted to train my first Convolutional NN. I imported the images from my Google Drive thanks to the answer I got here. Then I pasted my code to create the CNN into Colab and started the process. Here is the complete code: Part 1: Setting up Colab to import picture from my Drive (part 1 is copied from here as it worked as exptected for me Step 1: !apt-get install -y -qq software-properties-common python-software-properties module-init-tools !add

How to run eval.py job for tensorflow object detection models

陌路散爱 提交于 2019-11-28 22:33:27
问题 I have trained an object detector using tensorflow's object detection API on Google Colab. After researching on the internet for most of the day, I haven't been able to find a tutorial about how to run an evaluation for my model, so I can get metrics like mAP. I figured out that I have to use the eval.py from the models/research/object_detection folder, but I'm not sure which parameters should I pass to the script. Shortly, what I've done so far is, generated the labels for the test and train

How to edit and save text files (.py) in Google Colab?

寵の児 提交于 2019-11-28 22:19:42
问题 I cloned a github repo using !git clone https://github.com/llSourcell/Pokemon_GAN.git . I wanted to modify a .py file inside Colab. So i used %load filename.py as suggested here (How to load/edit/run/save text files (.py) into an IPython notebook cell?). But whenever i run this command, i get disconnected after some time. I was wondering if there is some other way to edit .py file without undergoing the hassle of downloading it to pc,editing and then re uploading it. Thanks in advance. 回答1:

Does Google Colab stay connected when I close my browser?

半世苍凉 提交于 2019-11-28 22:06:38
问题 This may be a dumb question, but does a job stop running on a Colab instance when I close my browser? If not, is there a way to keep it running (i.e until it's complete) In that same vein of thought, if I were to give someone edit access to my Colab notebook, would it be running on my instance of Colab with all my installed libraries or on theirs? 回答1: The current cell will continue executing once you close your browser, but the outputs will not end up in the notebook in Drive. (If you were

How to download file created in Colaboratory workspace?

主宰稳场 提交于 2019-11-28 21:17:13
I found many hints how to upload data into Colaboratory . But now I want to do opposite -> I want to download .csv I've created in Colaboratory workspace. How to do this? Save it to google drive use Pydrive # Install the PyDrive wrapper & import libraries. # This only needs to be done once in a notebook. !pip install -U -q PyDrive from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive from google.colab import auth from oauth2client.client import GoogleCredentials # Authenticate and create the PyDrive client. # This only needs to be done once in a notebook. auth.authenticate

Changing directory in Google colab (breaking out of the python interpreter)

末鹿安然 提交于 2019-11-28 16:44:15
问题 So I'm trying to git clone and cd into that directory using Google collab - but I cant cd into it. What am I doing wrong? !rm -rf SwitchFrequencyAnalysis && git clone https://github.com/ACECentre/SwitchFrequencyAnalysis.git !cd SwitchFrequencyAnalysis !ls datalab/ SwitchFrequencyAnalysis/ You would expect it to output the directory contents of SwitchFrequencyAnalysis - but instead its the root. I'm feeling I'm missing something obvious - Is it something to do with being within the python

Google Colaboratory: misleading information about its GPU (only 5% RAM available to some users)

老子叫甜甜 提交于 2019-11-28 14:58:52
update: this question is related to Google Colab's "Notebook settings: Hardware accelerator: GPU". This question was written before the "TPU" option was added. Reading multiple excited announcements about Google Colaboratory providing free Tesla K80 GPU, I tried to run fast.ai lesson on it for it to never complete - quickly running out of memory. I started investigating of why. The bottom line is that “free Tesla K80” is not "free" for all - for some only a small slice of it is "free". I connect to Google Colab from West Coast Canada and I get only 0.5GB of what supposed to be a 24GB GPU RAM.