Select to view content in your preferred language

Error 002667.

202
2
Jump to solution
a month ago
Labels (1)
JuanmaAneraMarin
Occasional Contributor

Hi,

I'm trying to use the "Car Detection - USA" DL model from the Detect Objects Using Deep Learning tool. https://doc.arcgis.com/en/pretrained-models/latest/imagery/using-car-detection-usa.htm

I've already followed the installation steps, for ArcGis Pro 3.5: https://github.com/Esri/deep-learning-frameworks

The installation of that package was done.

The problem persists when I try to use the model definition: CarDetection_USA.dlpk
which is stored under my testing project folder.

"import cv2" is where the issue is getting that error.
Even using a cloned environment of the arcgispro-py3 default version, is getting me same error.

The error message:

Unable to load the specified python raster function module. [C:\Users\anera\AppData\Local\Temp\ArcGISProTemp16404\CarDetection_USA.dlpk\ArcGISInstanceDetector.py]
Traceback (most recent call last):
File "C:\Users\anera\AppData\Local\Temp\ArcGISProTemp16404\CarDetection_USA.dlpk\ArcGISInstanceDetector.py", line 5, in <module>
import cv2
ModuleNotFoundError: No module named 'cv2'

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


Any hint?
Thanks everyone,

Juanma

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
JuanmaAneraMarin
Occasional Contributor

Thanks @PavanYadav ,
I guess was related to the proper installation. It was solved by its own when reinstalling again same full packages. Just re-doing again the same steps and worked. Strange but worked.

 

Thanks again,

Juanma,

View solution in original post

2 Replies
PavanYadav
Esri Regular Contributor

Hi @JuanmaAneraMarin could you share the following? 
1. open Python Command Prompt (confirm this is the environment in which you installed the deep learning packages) 

2. run 'conda list' 

share the list in a txt file. 

I am afraid it could be an installation problem. If you prefer, please email me at pyadav AT esri DOT com. 

 

Pavan Yadav
Product Engineer at Esri
AI for Imagery
Connect with me on LinkedIn!
Contact Esri Support Services
0 Kudos
JuanmaAneraMarin
Occasional Contributor

Thanks @PavanYadav ,
I guess was related to the proper installation. It was solved by its own when reinstalling again same full packages. Just re-doing again the same steps and worked. Strange but worked.

 

Thanks again,

Juanma,