Split Merge Issue

I am processing 307 images using Split Merge Pipeline. But got stuck in an error in the merge stage.

[INFO] Found 2 submodels with valid orthophotos and cutlines
[INFO] 2 valid orthophoto rasters to merge
Traceback (most recent call last):
File “/code/run.py”, line 54, in
retcode = app.execute()
File “/code/stages/odm_app.py”, line 125, in execute
raise e
File “/code/stages/odm_app.py”, line 89, in execute
self.first_stage.run()
File “/code/opendm/types.py”, line 340, in run
self.next_stage.run(outputs)
File “/code/opendm/types.py”, line 340, in run
self.next_stage.run(outputs)
File “/code/opendm/types.py”, line 321, in run
self.process(self.args, outputs)
File “/code/stages/splitmerge.py”, line 299, in process
orthophoto.merge(all_orthos_and_ortho_cuts, tree.odm_orthophoto_tif, orthophoto_vars)
File “/code/opendm/orthophoto.py”, line 204, in merge
raise ValueError(“Inputs must be at least 4-band rasters”)
ValueError: Inputs must be at least 4-band rasters

Got the output without splitting the dataset. Any help or suggestions of what I could do to avoid this error.

→ Also can someone suggest me on how to decide the --split-overlap parameter in my case. The document mentioned it as in meters. I am not sure what should be the appropriate value and how should I test it

1 Like

Traceback (most recent call last):
File “/code/run.py”, line 54, in
retcode = app.execute()
File “/code/stages/odm_app.py”, line 125, in execute
raise e
File “/code/stages/odm_app.py”, line 89, in execute
self.first_stage.run()
File “/code/opendm/types.py”, line 340, in run
self.next_stage.run(outputs)
File “/code/opendm/types.py”, line 340, in run
self.next_stage.run(outputs)
File “/code/opendm/types.py”, line 340, in run
self.next_stage.run(outputs)
[Previous line repeated 7 more times]
File “/code/opendm/types.py”, line 321, in run
self.process(self.args, outputs)
File “/code/stages/odm_orthophoto.py”, line 126, in process
compute_cutline(tree.odm_orthophoto_tif,
File “/code/opendm/cutline.py”, line 151, in compute_cutline
largest_cutline = cutline_polygons[0]
TypeError: ‘Polygon’ object is not subscriptable

===== Dumping Info for Geeks (developers need this to fix bugs) =====
Child returned 1
Traceback (most recent call last):
File “/code/stages/odm_app.py”, line 89, in execute
self.first_stage.run()
File “/code/opendm/types.py”, line 340, in run
self.next_stage.run(outputs)
File “/code/opendm/types.py”, line 321, in run
self.process(self.args, outputs)
File “/code/stages/splitmerge.py”, line 223, in process
system.run(" ".join(map(double_quote, map(str, argv))), env_vars=os.environ.copy())
File “/code/opendm/system.py”, line 106, in run
raise SubprocessException(“Child returned {}”.format(retcode), retcode)
opendm.system.SubprocessException: Child returned 1

===== Done, human-readable information to follow… =====

Got another issue. Plz Help

1 Like

Child returned 1 may indicate Out Of Memory.

As for Split/Merge, I think 10 is far too low. I am not very familiar with this workflow yet, however.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.