Skip to content

Split-merge: don't pass --split-image-groups (and --copy-to) to submodels - #2085

Open
Ghost7K wants to merge 2 commits into
OpenDroneMap:masterfrom
Ghost7K:split-image-groups-submodels
Open

Ghost7K wants to merge 2 commits into
OpenDroneMap:masterfrom
Ghost7K:split-image-groups-submodels

Conversation

@Ghost7K

@Ghost7K Ghost7K commented Oct 20, 2026

Copy link
Copy Markdown

Forum: https://community.opendronemap.org/t/25828 ("Using image_groups.txt creates endless submodels")

Problem
When a task is started with --split-image-groups <file> (NodeODM does this when image_groups.txt is uploaded), get_submodel_argv() passes the option on to every submodel. Each submodel then finds the groups file again, stages/splitmerge.py marks it as "large" and it splits itself again – endlessly.

In the same list, copy-to was spelled with a hyphen while the argument keys use underscores, so --copy-to was never removed from submodel arguments either.

Fix
Add split_image_groups to remove_always and correct copy-to → copy_to. Unit test added in tests/test_osfm.py (fails before, passes after).

Test (end-to-end)
opendronemap/odm:3.6.2, odm_data_aukerman (77 images) with a 2-group image_groups.txt, --split-image-groups /datasets/proj/image_groups.txt --split 100, stopped after 6 minutes:

top-level submodels nested submodel directories
unpatched 2 263 (submodel_0000/submodels/submodel_0000/...)
with this PR 2 0

🤖 Generated with Claude Code

https://claude.ai/code/session_01A6nSKVeapxTouZcAYh6UF6

Ghost7K and others added 2 commits October 20, 2026 06:20
Each submodel found the groups file again and split itself again (endless submodels). copy-to was spelled with a hyphen, so it was never removed either.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@spwoodcock

Copy link
Copy Markdown
Member

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants