Skip to content

Commit de42fc0

Browse files
author
Francesco Ioli
committed
fixed pycolmap reconstruction with pycolmap=3.13 (database opening failed)
1 parent 37ed55c commit de42fc0

File tree

3 files changed

+85
-4
lines changed

3 files changed

+85
-4
lines changed

demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def run_matching(args):
133133
"force": True,
134134
"skip_reconstruction": False,
135135
"graph": True,
136-
"verbose": False,
136+
"verbose": True,
137137
}
138138

139139
run_matching(args)

src/deep_image_matching/reconstruction.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010

1111

1212
def incremental_mapping_with_pbar(database_path, image_path, sfm_path):
13-
num_images = pycolmap.Database(database_path).num_images
13+
database = pycolmap.Database()
14+
database.open(database_path)
15+
num_images = database.num_images
1416
with enlighten.Manager() as manager:
1517
with manager.counter(total=num_images, desc="Images registered:") as pbar:
1618
pbar.update(0, force=True)

uv.lock

Lines changed: 81 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)