Esri / raster-deep-learning

ArcGIS built-in python raster functions for deep learning to get you started fast.
Apache License 2.0
186 stars 87 forks source link

ERROR 002667 Unable to initialize python raster function with scalar arguments. AttributeError: module 'TensorFlow.ObjectDetectionAPI' has no attribute 'ChildImageClassifier' #20

Closed Jakaria08 closed 4 years ago

Jakaria08 commented 4 years ago

I am facinng the following error while loading the emd file:

Untitled

ERROR 002667 Unable to initialize python raster function with scalar arguments. [c:\program files\arcgis\pro\Resources\Raster\Functions\System\DeepLearning\ImageClassifier.py] Traceback (most recent call last): File "c:\program files\arcgis\pro\Resources\Raster\Functions\System\DeepLearning\ImageClassifier.py", line 70, in initialize '{}.{}'.format(framework, self.json_info['ModelConfiguration'])), 'ChildImageClassifier') AttributeError: module 'TensorFlow.ObjectDetectionAPI' has no attribute 'ChildImageClassifier'

Unable to initialize python raster function with scalar arguments.

My emd file:

{

"Framework": "TensorFlow",
"ModelConfiguration": "ObjectDetectionAPI",
"ModelFile":"S:\\Jakaria Rabbi\\Jakaria\\ArcGIS_Deep_Learning\\frozen_inference_graph.pb",
"ModelType":"ObjectionDetection",
"ImageHeight":512,
"ImageWidth":512,
"ExtractBands":[0,1,2],
"Classes" : [
{
  "ClassValue" : 1,
  "ClassName" : "Empty_site",
  "Color" : [
    255,
    0,
    0
  ]
},
{
  "ClassValue" : 2,
  "ClassName" : "Only_structure",
  "Color" : [
    96,
    33,
    207
  ]
},
{
  "ClassValue" : 3,
  "ClassName" : "Multiple_Battery",
  "Color" : [
    207,
    33,
    96
  ]
},
{
  "ClassValue" : 4,
  "ClassName" : "Single_Battery",
  "Color" : [
    255,
    255,
    0
  ]
}

] }

Actually, there is no ChildImageClassifier object on ObjectDetectinAPI.py. But the code is calling that object. Am I missing something? Thank you for your help.

Jakaria08 commented 4 years ago

"ModelType":"ObjectionDetection" should be "ModelType":"ObjectDetection" - silly mistake.