Skip to content

Commit

Permalink
Syntax fix, always optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed Jan 10, 2023
1 parent 3f6b8b4 commit aa82f76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion opendm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def config(argv=None, parser=None):
help='Filters the point cloud by keeping only a single point around a radius N (in meters). This can be useful to limit the output resolution of the point cloud and remove duplicate points. Set to 0 to disable sampling. '
'Default: %(default)s')

parser.add_argument('--pc-skip-geometric
parser.add_argument('--pc-skip-geometric',
action=StoreTrue,
nargs=0,
default=False,
Expand Down
3 changes: 1 addition & 2 deletions stages/openmvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,8 @@ def process(self, args, outputs):
if masks:
extra_config.append("--ignore-mask-label 0")

sharp = args.pc_skip_geometric
with open(densify_ini_file, 'w+') as f:
f.write("Optimize = %s\n" % (3 if sharp else 7))
f.write("Optimize = 7\n")

def run_densify():
system.run('"%s" "%s" %s' % (context.omvs_densify_path,
Expand Down

0 comments on commit aa82f76

Please sign in to comment.