如何解决ArcGIS Deep Learning:AttributeError:模块“name”没有属性“install_deep_learning_model”
我正在使用 Python 解决 ArcGIS 深度学习问题,并且我大致遵循本教程 (https://developers.arcgis.com/python/guide/object-detection/)。我已将我的深度学习包添加到 ArcGIS Online,现在我进入了使用以下代码安装包的步骤:
model_package = gis.content.add(item_properties={"type":"Deep Learning Package","typeKeywords":"Deep Learning,Raster","title":"damage Assessment","tags":"deeplearning",'overwrite':'True'},data=trained_model)
detect_objects_model = Model(model_package)
detect_objects_model.install(gis=gis)
detect_objects_model.query_info()
我现在收到以下错误:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-37-f2f018432ec7> in <module>
1 detect_objects_model = Model(model_package)
----> 2 detect_objects_model.install(gis=gis)
3 detect_objects_model.query_info()
C:\Program Files\ArcGIS\Pro\bin\Python\envs\deeplearning\lib\site-packages\arcgis\learn\__init__.py in install(self,gis,future,**kwargs)
992 return gis._tools.rasteranalysis.install_deep_learning_model(model_package=self._model,993 future=future,--> 994 **kwargs)
995
996 """
C:\Program Files\ArcGIS\Pro\bin\Python\envs\deeplearning\lib\site-packages\arcgis\_impl\tools.py in install_deep_learning_model(self,model_package,**kwargs)
7585 task = "InstallDeepLearningModel"
7586 gis = self._gis
-> 7587 gpjob = self._tbx.install_deep_learning_model(model_package=model_package,7588 gis=gis,future=True)
7589 gpjob._is_ra = True
AttributeError: module 'name' has no attribute 'install_deep_learning_model'
任何人都可以告诉我出了什么问题吗?谢谢!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。