google-colaboratory

Installing faiss on Google Colaboratory

随声附和 提交于 2019-12-21 05:09:13
问题 I try to follow instruction on the MUSE project. They require PyTorch and Faiss. PyTorch is easy to install. But I found problem with installing Faiss. The instruction on MUSE tell me to use conda install faiss-cpu -c pytorch But Google Colab doesn't support conda (When I tried !pip install conda , it didn't work) And Faiss didn't work when I !pip install faiss either. Is there a way to install Faiss or conda? 回答1: Here's how I eventually install faiss. !wget https://anaconda.org/pytorch

From colab directly manipulate sqlite3 format data in Google drive

依然范特西╮ 提交于 2019-12-21 01:57:31
问题 From colaboratory, is it possible to directly manipulate sqlite 3 format data in google drive? It is possible if you upload it, but it is convenient to use it in google drive. 回答1: You can do load files directory from Drive by mounting your Google Drive as a FUSE filesystem. Here's an example: https://colab.research.google.com/notebook#fileId=1srw_HFWQ2SMgmWIawucXfusGzrj1_U0q There's no official Google Drive FUSE filesystem. But, several open-source FUSE + Drive libraries have been written by

Input/output error while using google colab with google drive

大兔子大兔子 提交于 2019-12-20 03:47:09
问题 When I use google colab I get this error more than once and randomly Sometimes it works and sometimes not OSError: [Errno 5] Input/output error is this error occur when I interface with google drive ? any solutions for this bug 回答1: From the FAQ -- Google Drive operations can time out when the number of files or subfolders in a folder grows too large. If thousands of items are directly contained in the top-level "My Drive" folder then mounting the drive will likely time out. Repeated attempts

Not able to upload local files in google collaboratory

强颜欢笑 提交于 2019-12-19 17:36:11
问题 I am trying to upload a word2vec file in Google Colaboratory from local system and use it further in the in code. This is the code that I used. from google.colab import files uploaded = files.upload() Everytime I execute it, it is showing the following error. Upload widget is only available when the cell has been executed in the current browser session. Please rerun this cell to enable MessageError Traceback (most recent call last) <ipython-input-1-292f82be1b7a> in <module>() 1 from google

How to upload dataset in google colaboratory?

匆匆过客 提交于 2019-12-19 10:07:16
问题 I need to upload dataset of images in google colaboratory. It has subfolder inside it which contains images. Whatever I found on the net was for the single file. from google.colab import files uploaded = files.upload() Is there any way to do it? 回答1: For uploading data to Colab, you have three methods. Method 1 You can directly upload file or directory in Colab UI The data is saved in Colab local machine. In my experiment, there are three features: 1) the upload speed is good. 2) it will

Unable to locate package google-drive-ocamlfuse , suddenly stopped working

泪湿孤枕 提交于 2019-12-19 04:22:38
问题 I have been using colab lately and till now I used google-drive-ocamlfuse to link my project to my drive but not it is unable to load package. !apt-get update -qq 2>&1 > /dev/null !apt-get install -y -qq software-properties-common python-software-properties module-init-tools !add-apt-repository -y ppa:alessandro-strada/ppa 2>&1 > /dev/null !add-apt-repository ppa:alessandro-strada/google-drive-ocamlfuse-beta !apt-get update -qq 2>&1 > /dev/null !apt-get -y install -qq google-drive-ocamlfuse

Is there a way to use Python 3.5 instead of 3.6?

帅比萌擦擦* 提交于 2019-12-18 07:26:10
问题 I need to install a library that is only compatible with Python 3.5, is there a way to change the Python version in Colab from 3.6 to 3.5? 回答1: The only way to vary the python3 version is to connect to a local runtime. 来源: https://stackoverflow.com/questions/52467489/is-there-a-way-to-use-python-3-5-instead-of-3-6

Lifetime of a colab VM?

允我心安 提交于 2019-12-18 04:08:32
问题 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! 回答1: 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

How to Upload Many Files to Google Colab?

試著忘記壹切 提交于 2019-12-18 03:37:06
问题 I am working on image segmentation machine learning project and I would like to test it out on Google Colab. For the training dataset, I have 700 images, mostly 256x256 , that I need to upload into a python numpy array for my project. I also have thousands of corresponding mask files to upload. They currently exist in a variety of subfolders on Google drive, but have been unable to upload to Google Colab for use in my project. So far I have attempted using Google Fuse which seems to have very

Is it possible to import my own modules into a google-colaboratory notebook?

谁都会走 提交于 2019-12-17 18:24:43
问题 I am using google colaboratory for teaching Data Science with python and in order to leave the notebooks only with the specific lesson for the students I would like to import some basic methods we have coded instead to give them a big notebook pre-filled with these methods for preventing any distractions. How can I import these methods without publishing them on pip?. Can google-colaborary pip install from github? The best option for us would be to be able to have the code in Drive and an