Skip to content

Commit

Permalink
solved bug exporing into colmap
Browse files Browse the repository at this point in the history
  • Loading branch information
lcmrl committed Sep 26, 2024
1 parent 2d91358 commit 31573ef
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/deep_image_matching/utils/loftr_roma_to_multiview.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def get_unique_idxs(A, dim=1):

def import_into_colmap(img_dir,
feature_dir ='.featureout',
database_path = 'colmap.db'
database_path = 'colmap.db',
):
db = COLMAPDatabase.connect(database_path)
#db.create_tables()
Expand Down Expand Up @@ -215,15 +215,16 @@ def LoftrRomaToMultiview(
for k2, match in gr.items():
group[k2] = match

try:
os.remove(f"{output_dir}/database.db")
except:
pass
#try:
# os.remove(f"{output_dir}/database.db")
#except:
# pass

import_into_colmap(
image_dir,
feature_dir=f"{output_dir}",
database_path=f"{output_dir}/database.db")



if __name__ == '__main__':
Expand Down

0 comments on commit 31573ef

Please sign in to comment.