AttributeError: module 'name' has no attribute 'install_deep_learning_model'

1123
6
06-21-2021 01:33 PM
YanLi3
by
New Contributor

Hey everyone,

I'm trying to do some deep learning tasks, and I got this error message when I was trying to install the model which was successfully loaded from my AGOL package layer. Anyone knows what's the cause of this and how to fix it out?

The version of my arcgis is 1.8.1, and ArcGIS Pro is 2.6.2 without Image Analyst license. Is this relative to the error? cause it seems happen at tools.py at 7587 line, _tbx.install_deep_learning_model().

YanLi3_1-1624307250675.png

Thanks in advance.

Yan

0Kudos
6 Replies
DanPatterson
MVP Esteemed Contributor

Did you install the framework for you particular version of Pro?

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


... sort of retired...
0Kudos
YanLi3
by
New Contributor

Hi Dan,

Thank you.

I can do training like ssd.fit, FasterRCNN.fit,... so I think I already install the package of .learn. Anyway I'll read the link and give it a try. Will be back soon.

Yan

0Kudos
Tim_McGinnes
Occasional Contributor III

Hi Yan,

The install_model function in ArcGIS.learn is used to deploy a deep learning model to an ArcGIS Enterprise Image Server. Is that what you are trying to do?

What sort of model are you using? If you don’t have the Image Analyst extension then some of the object detection models can run the model using the arcgis.learn predict function.

0Kudos
YanLi3
by
New Contributor

Hi Tim,

Thank you.

No I'm not going to deploy it. Plus, it's not necessary to install after calling Model(mymodel) to do object detection. I checked the model info it was good.

Yes I found I can like run learn.ssd.fit() even without the Image Analyst.

Now my problem is, I can't run detect_objects(). It seems like the input raster must be a layer from online item. atcpy.Raster output is not accept. While I have no privilege to create an imagery layer to my AGOL, or share from Pro. Stuck here.

0Kudos
Tim_McGinnes
Occasional Contributor III

The detect_objects function is specifically only for Image Server, which is why it needs a raster layer. And it currently only works in ArcGIS Enterprise and not AGOL.

There is a function within the SSD learn section called predict - it should take a local raster file and return a list of bounding boxes of the detected objects.

Tim_McGinnes_0-1624399574110.png

0Kudos
YanLi3
by
New Contributor

Thank you Tim. I'll give it a try. Appreciate it so much.

0Kudos