Skip to content

Preserve parent reference frame for remote split submodels - #2095

Closed
rayw-lab wants to merge 2 commits into
OpenDroneMap:masterfrom
rayw-lab:fix-preserve-parent-reference-lla
Closed

rayw-lab wants to merge 2 commits into
OpenDroneMap:masterfrom
rayw-lab:fix-preserve-parent-reference-lla

Conversation

@rayw-lab

@rayw-lab rayw-lab commented Nov 23, 2026 •

Copy link
Copy Markdown

Addresses #2094.

When a split submodel runs remotely, its seed archive includes the parent project's opensfm/reference_lla.json, but not image_list.txt. OpenSfM setup consequently runs again on the remote task. Previously it replaced the seeded reference with the submodel's own origin. This change preserves an existing reference and still writes one for a fresh georeferenced project.

setup(rerun=True) removes the OpenSfM directory and writes a new reference as before. The parent task's --rerun, --rerun-from, and --rerun-all options are removed from submodel arguments; a newly seeded remote subtask does not inherit them.

The regression tests exercise the real seed archive writer, extraction into a temporary remote project, and OSFMContext.setup() with synthetic coordinates. They cover a seeded reference, a fresh project, an explicit setup rerun, and the submodel rerun arguments. On the original code the seeded case overwrites the parent coordinates; with this change it preserves them.

Validation performed locally: all five tests in tests/test_osfm.py passed in a Python 3.14 test harness using real GDAL/PROJ coordinate transformation and filesystem operations. The harness stubs OpenSfM and other unrelated imports and supplies a Python 3.12 compatibility helper; it does not run the complete ODM pipeline or a remote cluster. On the unmodified baseline, the seeded-reference test failed and the other four passed. The full project test environment was not run locally.

@MJohnson459

Copy link
Copy Markdown
Contributor

Closing in favour of #2097

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