kopia lustrzana https://github.com/OpenDroneMap/ODM
Enable smvs for downstream modules
rodzic
eda8beaefe
commit
4262c64840
|
@ -444,6 +444,7 @@ class ODM_Tree(object):
|
|||
self.mve_path = io.join_paths(self.opensfm, 'mve')
|
||||
self.mve_image_list = io.join_paths(self.mve_path, 'list.txt')
|
||||
self.mve_bundle = io.join_paths(self.mve_path, 'bundle/bundle.out')
|
||||
self.mve_views = io.join_paths(self.smvs, 'views')
|
||||
|
||||
# odm_meshing
|
||||
self.odm_mesh = io.join_paths(self.odm_meshing, 'odm_mesh.ply')
|
||||
|
|
|
@ -107,8 +107,11 @@ class ODMMvsTexCell(ecto.Cell):
|
|||
'toneMapping': self.params.tone_mapping
|
||||
}
|
||||
|
||||
kwargs['nvm_file'] = io.join_paths(tree.opensfm,
|
||||
"reconstruction.nvm")
|
||||
if args.use_opensfm_dense:
|
||||
kwargs['nvm_file'] = io.join_paths(tree.opensfm,
|
||||
"reconstruction.nvm")
|
||||
else:
|
||||
kwargs['nvm_file'] = tree.smvs + "::undistorted"
|
||||
|
||||
# Make sure tmp directory is empty
|
||||
mvs_tmp_dir = os.path.join(r['out_dir'], 'tmp')
|
||||
|
|
|
@ -95,9 +95,10 @@ class ODMGeoreferencingCell(ecto.Cell):
|
|||
|
||||
if args.fast_orthophoto:
|
||||
kwargs['pc'] = os.path.join(tree.opensfm, 'reconstruction.ply')
|
||||
else:
|
||||
elif args.use_opensfm_dense:
|
||||
kwargs['pc'] = tree.opensfm_model
|
||||
|
||||
else:
|
||||
kwargs['pc'] = tree.smvs_model
|
||||
|
||||
# Check to see if the GCP file exists
|
||||
|
||||
|
|
|
@ -39,6 +39,8 @@ class ODMSmvsCell(ecto.Cell):
|
|||
log.ODM_ERROR('Not enough photos in photos array to start SMVS')
|
||||
return ecto.QUIT
|
||||
|
||||
system.mkdir_p(tree.smvs)
|
||||
|
||||
# check if we rerun cell or not
|
||||
rerun_cell = (args.rerun is not None and
|
||||
args.rerun == 'smvs') or \
|
||||
|
@ -57,7 +59,7 @@ class ODMSmvsCell(ecto.Cell):
|
|||
io.copy(tree.opensfm_bundle, tree.mve_bundle)
|
||||
|
||||
# run mve makescene
|
||||
if not io.dir_exists(tree.mve_path):
|
||||
if not io.dir_exists(tree.mve_views):
|
||||
system.run('%s %s %s' % (context.makescene_path, tree.mve_path, tree.smvs))
|
||||
|
||||
# config
|
||||
|
|
Ładowanie…
Reference in New Issue