google-colaboratory

Google Colab suddenly slow

巧了我就是萌 提交于 2020-05-17 06:50:06
问题 I'm a new man in Deep learning and Google Colab. I'm trying to run this repo on Google Colab https://github.com/harvitronix/five-video-classification-methods But when I running extract_features.py, after 30 minutes, google Colab suddenly extreme slow, from ~2s/it to ~ 30s/it. As you can see in the picture below. It's my fault or it's a problem of GG Colab and how to fix it? 回答1: For starters I would like to mention basic troubleshooting steps like check you internet connection and make sure

How to open and work on files stored in Google drive from Google colab?

喜你入骨 提交于 2020-05-16 15:09:12
问题 So I cannot successfully install miniconda and decided to work in Google Colab. But my local repository is in Google Drive. All of the jupyter notebook that I want to work on is store in Google Drive. I want to work on them in Google Colab. However, I cannot open the files other than the ones stored in Colab folder of Google drive. What should I do now? 回答1: First you need to mount google drive and then from google.colab import drive drive.mount('/content/gdrive') Click the link on colb and

How can I use Python 2 on google colab?

♀尐吖头ヾ 提交于 2020-05-16 06:31:57
问题 Can someone guide me how can I use the earlier version of python i.e version2.x? Under change runtime option - I can see option for selecting hardware accelerator. Thanks 回答1: You can use this shortcut to create a Python 2 Colab. bit.ly/colabpy2 It will forward to this URL. https://colab.research.google.com/notebook#create=true&language=python2 回答2: Python 2 reached its end of life on January 1, 2020, and is no longer supported by the Python developer community. Because of that, Colab is in

Docker is not running on Colab

▼魔方 西西 提交于 2020-05-15 07:47:36
问题 I have tried to install Docker on google Colab through the following ways: (1)https://phoenixnap.com/kb/how-to-install-docker-on-ubuntu-18-04 (2)https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04 (3)https://colab.research.google.com/drive/10OinT5ZNGtdLLQ9K399jlKgNgidxUbGP I started the docker service and saw the status, but it showed 'Docker is not running'. Maybe the docker can not work on the Colab. I feel confused and want to know the reason.

How to install 'plotly' from inside Anaconda under Colab on Mac

倾然丶 夕夏残阳落幕 提交于 2020-05-15 07:43:43
问题 I tried to import plotly in Anaconda with code import plotly.graph_objs as go from plotly import __version__ from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot init_notebook_mode(connected=True) but received error --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-11-978bd9a5088a> in <module> 14 15 # import plotly.plotly as py ---> 16 import plotly.graph_objs as go 17 from

How to install 'plotly' from inside Anaconda under Colab on Mac

泄露秘密 提交于 2020-05-15 07:43:10
问题 I tried to import plotly in Anaconda with code import plotly.graph_objs as go from plotly import __version__ from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot init_notebook_mode(connected=True) but received error --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-11-978bd9a5088a> in <module> 14 15 # import plotly.plotly as py ---> 16 import plotly.graph_objs as go 17 from

ImportError: Cannot load backend 'TkAgg' which requires the 'tk' interactive framework, as 'headless' is currently running

亡梦爱人 提交于 2020-05-14 16:56:09
问题 When I use google colaboratory, I face this problem, I have searched it on stackoverflow, but few answer, could any guy help me to figure it out? THX! I have tried to reinstall matplotlib in several ways, and install tk-dev, all of them don't work. import matplotlib import glob **matplotlib.use('TKAgg')** import matplotlib.image as mpimg import matplotlib.pyplot as plt import matplotlib.patches as patches import matplotlib.ticker as ticker There comes out an ImportError like the Title :

Google Colab - Choosing specific Python version [duplicate]

杀马特。学长 韩版系。学妹 提交于 2020-05-13 13:32:41
问题 This question already has answers here : Is there a way to use Python 3.5 instead of 3.6? (2 answers) Closed last year . Default python on Google's Colab as of now is Py 3.6.7. I want to run on Py 3.5.3. Is it possible? If so, how? 回答1: Connect Colaboratory to a local runtime. This allows you to run any version of Python on your local hardware. Is there a way to use Python 3.5 instead of 3.6? 来源: https://stackoverflow.com/questions/54010692/google-colab-choosing-specific-python-version

where to config iopub_data_rate_limit on Colaboratory?

别来无恙 提交于 2020-05-13 07:33:40
问题 I have the following error when loading model weights in Colaboratory: IOPub data rate exceeded. The notebook server will temporarily stop sending output to the client in order to avoid crashing it. To change this limit, set the config variable --NotebookApp.iopub_data_rate_limit . Current values: NotebookApp.iopub_data_rate_limit=1000000.0 (bytes/sec) NotebookApp.rate_limit_window=3.0 (secs) UnicodeDecodeErrorTraceback (most recent call last) in () 6 if if_init_from_ckpt_file: 7 print('load

where to config iopub_data_rate_limit on Colaboratory?

时光怂恿深爱的人放手 提交于 2020-05-13 07:33:34
问题 I have the following error when loading model weights in Colaboratory: IOPub data rate exceeded. The notebook server will temporarily stop sending output to the client in order to avoid crashing it. To change this limit, set the config variable --NotebookApp.iopub_data_rate_limit . Current values: NotebookApp.iopub_data_rate_limit=1000000.0 (bytes/sec) NotebookApp.rate_limit_window=3.0 (secs) UnicodeDecodeErrorTraceback (most recent call last) in () 6 if if_init_from_ckpt_file: 7 print('load