Select to view content in your preferred language

Deep Learning- Object detection

476
1
11-10-2022 04:43 AM
DiegoErnestoFarfn
New Contributor

Good morning everyone, I'm new to using deep learning tools. I am trying to use these tools for plant counting from drone obtained orthomosaics.

When implementing the Single Shot Detector (Object detection) model in Arcgis Pro 2.9, the error ERROR 032659 updateParameters Error: Traceback (most recent call last) occurs:

  File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.validate.py", line 653, in <module>

  File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.validate.py", line 287, in updateParameters

    backbone_list = training_model._supported_backbones()

  File "C:\Users\Usuario\AppData\Local\ESRI\conda\envs\deeplearning\lib\site-packages\arcgis\learn\models\_ssd.py", line 368, in _supported_backbones

    *_resnet_family,

NameError: name '_resnet_family' is not defined

The error disappears when I select the model ¨YOLOv3 (Object detection)¨ or ¨MMDetection (Object detection)¨. However, a new error arises,

Traceback (most recent call last):

  File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.execute.py", line 121, in <module>

    class ProgressCallback(Callback):

NameError: name 'Callback' is not defined

Has anyone been able to fix these errors?
From now, thank you for you help!

0 Kudos
1 Reply
DaniMahardikaSuroso
New Contributor

Hi Diego, 

I've try to read the tool.script.execute.py on that code there's line with

 from fastai.callback import Callback

Maybe you can recheck your package does it have fast ai package or not?

0 Kudos