Poissonrecon threads fix

pull/992/head
Piero Toffanin 2019-05-31 15:19:59 -04:00
rodzic be7ba65264
commit 4265c4be77
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -41,7 +41,7 @@ def create_25dmesh(inPointCloud, outMesh, dsm_radius=0.07, dsm_resolution=0.05,
mesh = screened_poisson_reconstruction(dsm_points, outMesh, depth=depth,
samples=samples,
maxVertexCount=maxVertexCount,
threads=available_cores,
threads=max(1, available_cores - 1), # poissonrecon can get stuck on some machines if --threads == all cores
verbose=verbose)
else:
raise 'Not a valid method: ' + method

Wyświetl plik

@ -27,7 +27,7 @@ class ODMeshingStage(types.ODM_Stage):
samples=self.params.get('samples'),
maxVertexCount=self.params.get('max_vertex'),
pointWeight=self.params.get('point_weight'),
threads=self.params.get('max_concurrency'),
threads=max(1, self.params.get('max_concurrency') - 1), # poissonrecon can get stuck on some machines if --threads == all cores
verbose=self.params.get('verbose'))
else: