Skip to content

Commit

Permalink
revert last 2 commits, back to GPU usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Erler committed Oct 6, 2024
1 parent 96447d0 commit c350ec8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions images_to_mesh/processing_steps/sfm/reconstruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ def reconstruct_with_colmap_sparse(image_list: List[str]) -> List[str]:
'colmap', 'feature_extractor',
'--database_path', database_path,
'--image_path', image_path,
'--SiftExtraction.num_threads', num_processes,
'--use_gpu', 0
'--SiftExtraction.num_threads', num_processes
]
try:
for line in execute_subprocess(command=extract_command, log_path=log_path, error_path=error_path):
Expand All @@ -81,8 +80,7 @@ def reconstruct_with_colmap_sparse(image_list: List[str]) -> List[str]:
matching_command = [
'colmap', 'exhaustive_matcher',
'--database_path', database_path,
'--SiftMatching.num_threads', num_processes,
'--use_gpu', 0
'--SiftMatching.num_threads', num_processes
]
try:
for line in execute_subprocess(command=matching_command, log_path=log_path, error_path=error_path):
Expand All @@ -101,8 +99,7 @@ def reconstruct_with_colmap_sparse(image_list: List[str]) -> List[str]:
'--database_path', database_path,
'--image_path', image_path,
'--output_path', sparse_path,
'--Mapper.num_threads', num_processes,
'--use_gpu', 0
'--Mapper.num_threads', num_processes
]
try:
for line in execute_subprocess(command=mapping_command, log_path=log_path, error_path=error_path):
Expand Down

0 comments on commit c350ec8

Please sign in to comment.