@@ -65,7 +65,7 @@ def process(self, args, outputs):
65
65
filter_point_th = - 20
66
66
67
67
config = [
68
- " --resolution-level %s" % int (resolution_level ),
68
+ "--resolution-level %s" % int (resolution_level ),
69
69
'--dense-config-file "%s"' % densify_ini_file ,
70
70
"--max-resolution %s" % int (outputs ['undist_image_max_size' ]),
71
71
"--max-threads %s" % args .max_concurrency ,
@@ -79,7 +79,6 @@ def process(self, args, outputs):
79
79
gpu_config = []
80
80
use_gpu = has_gpu (args )
81
81
if use_gpu :
82
- #gpu_config.append("--cuda-device -3")
83
82
gpu_config .append ("--cuda-device -1" )
84
83
else :
85
84
gpu_config .append ("--cuda-device -2" )
@@ -101,6 +100,7 @@ def run_densify():
101
100
system .run ('"%s" "%s" %s' % (context .omvs_densify_path ,
102
101
openmvs_scene_file ,
103
102
' ' .join (config + gpu_config + extra_config )))
103
+
104
104
try :
105
105
run_densify ()
106
106
except system .SubprocessException as e :
@@ -127,10 +127,10 @@ def run_densify():
127
127
128
128
subscene_densify_ini_file = os .path .join (tree .openmvs , 'subscene-config.ini' )
129
129
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 " )
131
131
132
132
config = [
133
- "--sub-scene-area 660000" ,
133
+ "--sub-scene-area 660000" , # 8000
134
134
"--max-threads %s" % args .max_concurrency ,
135
135
'-w "%s"' % depthmaps_dir ,
136
136
"-v 0" ,
@@ -161,9 +161,13 @@ def run_densify():
161
161
config = [
162
162
'--resolution-level %s' % int (resolution_level ),
163
163
'--max-resolution %s' % int (outputs ['undist_image_max_size' ]),
164
+ "--sub-resolution-levels %s" % subres_levels ,
164
165
'--dense-config-file "%s"' % subscene_densify_ini_file ,
165
166
'--number-views-fuse %s' % number_views_fuse ,
166
167
'--max-threads %s' % args .max_concurrency ,
168
+ '--archive-type 3' ,
169
+ '--postprocess-dmaps 0' ,
170
+ '--geometric-iters 0' ,
167
171
'-w "%s"' % depthmaps_dir ,
168
172
'-v 0' ,
169
173
]
@@ -179,7 +183,7 @@ def run_densify():
179
183
else :
180
184
# Filter
181
185
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 )))
183
187
else :
184
188
# Just rename
185
189
log .ODM_INFO ("Skipped filtering, %s --> %s" % (scene_ply_unfiltered , scene_ply ))
0 commit comments