Select to view content in your preferred language

Edge Detection model cannot be used in Arc Pro 3.2.2

301
7
4 weeks ago
SicenLiu
Emerging Contributor

I am using ArcGIS Pro version 3.2.2 and got error while running the Edge Detection model .

---"ModuleNotFoundError: No module named 'huggingface_hub".

---Unable to load the specified python raster function module. [ArcGISImageClassifier]

I've installed the 'ArcGIS_Pro_32_Deep_Learning_Libraries', the Manifest of included packages for pro 3.2 does not include the library 'huggingface_hub', does this mean the edge detection model cannot be used for pro3.2?

0 Kudos
7 Replies
DanPatterson
MVP Esteemed Contributor

The manifest of packages is here

Esri/deep-learning-frameworks: Installation support for Deep Learning Frameworks for the ArcGIS Syst...

which defaults to listing the current versions.  For previous versions (like 3.2), look for the link and expand it

Manifest for Pro 3.2 / Server 11.2

links to the source packages can also be found there


... sort of retired...
0 Kudos
SicenLiu
Emerging Contributor

I cannot see ''huggingface_hub'' under Manifest for Pro 3.2 / Server 11.2, but running the edge detection model seems to require ''huggingface_hub'', does this mean the model cannot be used for Pro 3.2?

Capture.JPG

For advanced version like Pro 3.4, I can see ''huggingface_hub'' is included.

Capture1.JPG

It seems impossible to pip/conda install the library separately to the default Arcpy environment, what should I do to be able to run the model in Pro 3.2? Thanks.

0 Kudos
DanPatterson
MVP Esteemed Contributor

If you can't pip install in the arcgispro-py3 environment without breaking its dependencies then you can't use it there.

I don't know if you can create a separate environment and install it there.  That would be a post for the "Issues" section of

Esri/deep-learning-frameworks: Installation support for Deep Learning Frameworks for the ArcGIS Syst...


... sort of retired...
0 Kudos
SicenLiu
Emerging Contributor

Thanks. I cannot pip install it into the arcgispro-py3 environment so it seems that this model cannot be used in arc pro 3.2

0 Kudos
DanPatterson
MVP Esteemed Contributor

upgrade to a version of Pro that supports the workflow appears to be your only option


... sort of retired...
0 Kudos
Clubdebambos
MVP Regular Contributor

Clone the default environment in ArcGIS Pro, you can add libraries to a cloned version but not the default. Point ArcGIS Pro to use the cloned environment. I use pip all the time then to install various libraries from the command line with path\to\the\cloned\python.exe -m pip install library_name

Clubdebambos_0-1750866336299.png

 

~ learn.finaldraftmapping.com
SicenLiu
Emerging Contributor

Thanks, but this model requires the library to be installed into the default environment, not cloned environment.

0 Kudos