We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4e27c2 commit 6da366fCopy full SHA for 6da366f
opendm/osfm.py
@@ -796,6 +796,9 @@ def get_all_submodel_paths(submodels_path, *all_paths):
796
797
def is_submodel(opensfm_root):
798
# A bit hackish, but works without introducing additional markers / flags
799
- return os.path.islink(os.path.join(opensfm_root, "exif")) or \
+ # Look at the path of the opensfm directory and see if "submodel_" is part of it
800
+ parts = os.path.abspath(opensfm_root).split(os.path.sep)
801
+
802
+ return (len(parts) >= 2 and parts[-2][:9] == "submodel_") or \
803
os.path.isfile(os.path.join(opensfm_root, "split_merge_stop_at_reconstruction.txt")) or \
804
os.path.isfile(os.path.join(opensfm_root, "features", "empty"))
0 commit comments