Python Raster Function's .vectorize() method returned nothing

04-13-2021 12:31 AM
New Contributor III

Error appers when I use "Detect Objects Using Deep Learning" in ArcGIS Pro, the model is YOLOv3 which trained by ArcGIS API for Python.

ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support ( to Report a Bug, and refer to the error help for potential solutions or workarounds.
Python raster function is unable to vectorize the data. [Failed to generate table]
Python raster function is unable to vectorize the data.
E:\Program Files\ArcGIS\Pro\bin\Python\envs\deeplearning\Lib\site-packages\numpy\core\ RuntimeWarning: invalid value encountered in reduce
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
Traceback (most recent call last):
File "F:\pro_project\tree_detector\models\yolov3_acc89\", line 215, in vectorize
polygon_list, scores, classes = self.child_object_detector.vectorize(**pixelBlocks)
File "E:\Program Files\ArcGIS\Pro\bin\Python\envs\deeplearning\Lib\site-packages\arcgis\learn\models\_inferencing\", line 365, in vectorize
for pred in preds[batch_idx]:
KeyError: 0
Python Raster Function's .vectorize() method returned nothing.
Failed to execute (DetectObjectsUsingDeepLearning).



Expected behavior
How to make the YOLOv3 model work.

Platform (please complete the following information):

  • OS: Win10
  • Browser chrome
  • Python API Version 1.8.3
Tags (1)
0 Kudos
2 Replies
Esri Contributor

This occurs when there are no detections during inferencing. Is the cell size of the training samples and the image you used for inferencing, the same? One issue can also be the threshold is too high, but at 0.1 nothing should get filtered (so that's not an issue). if you are running this using your gpu, can you try doing the same using your CPU (change it on the environments tab of the tool)

0 Kudos
MVP Esteemed Contributor
0 Kudos