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
Solved! Go to Solution.
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,
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.
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,