kopia lustrzana https://github.com/OpenDroneMap/ODM
Fix local variable 'octx' referenced before assignment
rodzic
1a34343a73
commit
08c0e45a28
|
|
@ -17,6 +17,7 @@ class ODMOpenMVSStage(types.ODM_Stage):
|
|||
tree = outputs['tree']
|
||||
reconstruction = outputs['reconstruction']
|
||||
photos = reconstruction.photos
|
||||
octx = OSFMContext(tree.opensfm)
|
||||
|
||||
if not photos:
|
||||
log.ODM_ERROR('Not enough photos in photos array to start OpenMVS')
|
||||
|
|
@ -31,7 +32,6 @@ class ODMOpenMVSStage(types.ODM_Stage):
|
|||
# export reconstruction from opensfm
|
||||
openmvs_scene_file = os.path.join(tree.openmvs, "scene.mvs")
|
||||
if not io.file_exists(openmvs_scene_file) or self.rerun():
|
||||
octx = OSFMContext(tree.opensfm)
|
||||
cmd = 'export_openmvs'
|
||||
octx.run(cmd)
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -28,8 +28,6 @@ class ODMOpenSfMStage(types.ODM_Stage):
|
|||
exit(1)
|
||||
|
||||
octx = OSFMContext(tree.opensfm)
|
||||
# TODO REMOVE
|
||||
# octx.setup(args, tree.dataset_raw, reconstruction=reconstruction, rerun=False)
|
||||
octx.setup(args, tree.dataset_raw, reconstruction=reconstruction, rerun=self.rerun())
|
||||
octx.extract_metadata(self.rerun())
|
||||
self.update_progress(20)
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue