Open Daremitsu1 opened 2 years ago
Any update on this?
Hi there @Daremitsu1 ,
Sorry for the delay on this! We actually have a Google Colab installation section coming in our next update to the API guide. Here's a screenshot of our current recommended steps. Feel free to provide an update on how this works for you.
@Daremitsu1 Did this solution help?
No. Because it did not solve the problem of installing deep learning libraries. That problem is still persisting. Would be grateful if the Esri team provides a proper documentation on installing them in Colab.
@priyankatuteja Can you assist with this please?
Hi, it could be awesome to have a step-by-step guide, unfortunately, I have the same problems. I would like to run deep learning libraries and arcgis notebook examples. Waiting for the Google Colab installation section!!! @nparavicini7
@paolodep36 can you provide an example of code that's failing?
@Daremitsu1 are the import statements that were failing you still failing after following the instructions in screenshot from my prior comment? After creating a new notebook, running !sudo apt-get install libkrb5-dev
and !pip install arcgis
(and possibly restarting the runtime), I'm able to import all of the modules from your screenshot. Google colab environments come pre-loaded with the majority, if not all, of the necessary packages to work with arcgis learn.
And if those same imports are still failing, are you still getting the same error message?
@nparavicini7 Hi, I successfully managed to install api version 1.8.4
running !sudo apt-get install libkrb5-dev
and !pip install arcgis==1.8.4 torch==1.4.0 fastai==1.0.60 torchvision=0.5.0
in order to run the deep learning modules, you have to install the right torch library, torchvision, and fastai.
I succeeded for api version 1.8.4 but not yet for version 2.0.1 which requires different versions of pytorch, fastai and torchvision. Could you tell me what versions of pytorch and fastai I can install via pip install? If I run only pip install arcgis deep learning modules will not work because pip installs the last version of torch and fastai that are incompatible with arcgisapi. Obviously I need this because I want to run sample notebooks with GPU. I saw that there is a conda package: arcgis_learn and another one for windows deep learning essentials. Are there any similar packages to run with pip?
@paolodep36 no there is no pip equivalent. The deep learning conda install is a meta package, you can comb through it and install all the requirements using pip.
Describe the bug Hello, I have followed the steps to run arcgis in Google Colab. However while trying to import GIS from arcgis I am facing the error
NameError: name 'Image' is not defined
To Reproduce Steps to reproduce the behavior:
conda install -c esri -c fastai -c pytorch -c anaconda arcgis=1.8.4 ujson scikit-image=0.15.0 pillow=7.1.2 libtiff=4.1.0 fastai=1.0.60 pytorch=1.4.0 torchvision=0.5.0 python=3.7.9 --yes --no-pin
import sys sys.path
import sys _ = (sys.path .append("/usr/local/lib/python3.7/site-packages"))
5 frames /usr/local/lib/python3.7/site-packages/arcgis/learn/_utils/common.py in()
95 raise Exception(message)
96
---> 97 class ArcGISMSImage(Image):
98
99 def show(self, ax=None, rgb_bands=None, show_axis=False, title=None):
NameError: name 'Image' is not defined