Esri / Esri/deep-learning-frameworks

Error 002667 Unable to initialize python raster function with scalar arguments.

Open
#130 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
649
Forks
137
Avg merge
6d 5h
Merged PRs (30d)
1

Description

I am reaching out regarding the previously reported error on the [Tree Detection model page](https://esribelux.maps.arcgis.com/home/item.html?id=4af356858b1044908d9204f8b79ced99#overview) concerning Error 002667.

We noticed that this error occurs with certain deep learning packages (DLPKs), such as the Tree Detection model, while other packages work as expected.

Prerequisites: We downloaded the base meta-package (ArcGIS Deep Learning Backbones package) from the Living Atlas or [Esri GitHub](https://github.com/esri/deep-learning-frameworks). We also tried to download other Backbones packages, like the 4-part Timm Deep Learning, but we are unable to access these resources.

Our Diagnostic Hypothesis:
Although the model script (tree_detector_inference.py) initializes the architecture locally with pretrained=False (e.g., backbone = retinanet_resnet50_fpn(pretrained=False).backbone), the underlying PyTorch / Torchvision code (_api.py / torch/hub.py) still attempts to call load_state_dict_from_url.

In short, the model seems to try reaching an external hub (such as download.pytorch.org) to fetch default components. Due to strict network security rules in the customer's environment, these external calls fail, resulting in a timeout. Please reach out if you need more specific information or logs.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with tree_detector_inference.py and the referenced PyTorch/Torchvision entry points, _api.py and torch/hub.py. Reproduce Error 002667 with the Tree Detection DLPK in the customer's restricted network environment and inspect the available logs. Done means identifying the failing external-download path and documenting a confirmed fix or the additional information needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.