detect_objects_using_deep_learning() got an unexpected keyword argument 'process_all_raster_items'
See original GitHub issueDescribe the bug The bug appeared when I used the detect_objects_using_deep_learning method. .
To Reproduce Steps to reproduce the behavior:
from arcgis.gis import GIS
from arcgis.learn import Model,detect_objects
model = Model()
model.from_model_path('my_deeplearning_model_path')
im = GIS('my_gis').layers[0]
detect_objects(input_raster=im,model=model)
error:
TypeError Traceback (most recent call last)
<ipython-input-23-5f272dd2c670> in <module>()
----> 1 arcgis.learn.detect_objects(input_raster=im,model=model)
~/anaconda3/envs/pytorch/lib/python3.6/site-packages/arcgis/learn/__init__.py in detect_objects(input_raster, model, model_arguments, output_name, run_nms, confidence_score_field, class_value_field, max_overlap_ratio, context, process_all_raster_items, gis, future, **kwargs)
245 process_all_raster_items=process_all_raster_items,
246 future=future,
--> 247 **kwargs)
248
249 """
~/anaconda3/envs/pytorch/lib/python3.6/site-packages/arcgis/_impl/tools.py in detect_objects_using_deep_learning(self, input_raster, model, output_objects, model_arguments, run_nms, confidence_score_field, class_value_field, max_overlap_ratio, process_all_raster_items, context, future, **kwargs)
6200 context=context,
6201 gis=self._gis,
-> 6202 future=True)
6203 else:
6204 gpjob = self._tbx.detect_objects_using_deep_learning(input_raster=input_raster,
TypeError: detect_objects_using_deep_learning() got an unexpected keyword argument 'process_all_raster_items'
Screenshots
Expected behavior A clear and concise description of what you expected to happen.
Platform (please complete the following information):
- OS: Linux
- Browser [chrome]
- Python API Version [
1.7.0
]
Additional context Add any other context about the problem here, attachments etc.
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Unable to execute the Detect Objects Using Deep Learning ...
When working with deep learning models in ArcGIS Pro, attempting to run the Detect Objects Using Deep Learning tool fails and returns the ......
Read more >Detect Objects Using Deep Learning (Image Analyst)
ArcGIS geoprocessing tool that runs a trained deep learning model on an input raster to produce a feature class containing the objects it...
Read more >SelectLayerByAttribute() got an unexpected keyword argument
# Process: Select Municipal arcpy.SelectLayerByAttribute_management(FClass, "NEW_SELECTION", "FieldName = 'M'").
Read more >Django : __init__() got an unexpected keyword argument 'user'
Django : __init__() got an unexpected keyword argument 'user' [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] Django ...
Read more >How to fix Django TypeError got an unexpected keyword ...
Django TypeError when passing arguments via URLDjango view got an unexpected keyword argumentException Type: TypeErrorException Value: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@LinoSun Can you kindly try passing values for model_arguments parameter.
Here is an example.