Esri / Esri/raster-deep-learning

AttributeError: '_thread._local' object has no attribute 'value'

Open
#33 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
203
Forks
92
PR merge metrics
No merged PRs in 30d

Description

I am trying to use the MRCNN sample for Object Detection and Instance Segmentation (Building Footprint detection). In the 'Detect Objects using Deep Learning' tool on Arcgis Pro, I am uploading the .emd file found in the 'examples' of 'MRCNN' folder in the 'Keras' folder. I have edited the .emd file by adding the full paths for "Architecture", 'Config', and 'ModelFile'. However, I have been encountering the error as follows, please help:

**********
ERROR 002667 Unable to initialize python raster function with scalar arguments. [c:\program files\arcgis\pro\Resources\Raster\Functions\System\DeepLearning\ObjectDetector.py]
Traceback (most recent call last):
File "c:\program files\arcgis\pro\Resources\Raster\Functions\System\DeepLearning\ObjectDetector.py", line 54, in initialize
self.json_info = json.load(f)
File "C:\Users\rajak\AppData\Local\ESRI\conda\envs\building_project\Lib\json\__init__.py", line 299, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "C:\Users\rajak\AppData\Local\ESRI\conda\envs\building_project\Lib\json\__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "C:\Users\rajak\AppData\Local\ESRI\conda\envs\building_project\Lib\json\decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\rajak\AppData\Local\ESRI\conda\envs\building_project\Lib\json\decoder.py", line 355, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid \escape: line 5 column 26 (char 107)

Unable to initialize python raster function with scalar arguments.
**********

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.