@@ -65,7 +65,7 @@ def process(self, args, outputs):
6565 filter_point_th = - 20
6666
6767 config = [
68- " --resolution-level %s" % int (resolution_level ),
68+ "--resolution-level %s" % int (resolution_level ),
6969 '--dense-config-file "%s"' % densify_ini_file ,
7070 "--max-resolution %s" % int (outputs ['undist_image_max_size' ]),
7171 "--max-threads %s" % args .max_concurrency ,
@@ -79,7 +79,6 @@ def process(self, args, outputs):
7979 gpu_config = []
8080 use_gpu = has_gpu (args )
8181 if use_gpu :
82- #gpu_config.append("--cuda-device -3")
8382 gpu_config .append ("--cuda-device -1" )
8483 else :
8584 gpu_config .append ("--cuda-device -2" )
@@ -101,6 +100,7 @@ def run_densify():
101100 system .run ('"%s" "%s" %s' % (context .omvs_densify_path ,
102101 openmvs_scene_file ,
103102 ' ' .join (config + gpu_config + extra_config )))
103+
104104 try :
105105 run_densify ()
106106 except system .SubprocessException as e :
@@ -127,10 +127,10 @@ def run_densify():
127127
128128 subscene_densify_ini_file = os .path .join (tree .openmvs , 'subscene-config.ini' )
129129 with open (subscene_densify_ini_file , 'w+' ) as f :
130- f .write ("Optimize = 0\n " )
130+ f .write ("Optimize = 0\n Estimation Geometric Iters = 0 \ n " )
131131
132132 config = [
133- "--sub-scene-area 660000" ,
133+ "--sub-scene-area 660000" , # 8000
134134 "--max-threads %s" % args .max_concurrency ,
135135 '-w "%s"' % depthmaps_dir ,
136136 "-v 0" ,
@@ -161,9 +161,13 @@ def run_densify():
161161 config = [
162162 '--resolution-level %s' % int (resolution_level ),
163163 '--max-resolution %s' % int (outputs ['undist_image_max_size' ]),
164+ "--sub-resolution-levels %s" % subres_levels ,
164165 '--dense-config-file "%s"' % subscene_densify_ini_file ,
165166 '--number-views-fuse %s' % number_views_fuse ,
166167 '--max-threads %s' % args .max_concurrency ,
168+ '--archive-type 3' ,
169+ '--postprocess-dmaps 0' ,
170+ '--geometric-iters 0' ,
167171 '-w "%s"' % depthmaps_dir ,
168172 '-v 0' ,
169173 ]
@@ -179,7 +183,7 @@ def run_densify():
179183 else :
180184 # Filter
181185 if args .pc_filter > 0 :
182- system .run ('"%s" "%s" --filter-point-cloud %s -v 0 %s' % (context .omvs_densify_path , scene_dense_mvs , filter_point_th , ' ' .join (gpu_config )))
186+ system .run ('"%s" "%s" --filter-point-cloud %s -v 0 --archive-type 3 %s' % (context .omvs_densify_path , scene_dense_mvs , filter_point_th , ' ' .join (gpu_config )))
183187 else :
184188 # Just rename
185189 log .ODM_INFO ("Skipped filtering, %s --> %s" % (scene_ply_unfiltered , scene_ply ))
0 commit comments