add num_threads tied to max_concurrency

pull/1913/head
Stephen Mather 2025-08-18 16:30:09 -04:00
rodzic b8e9ee77a4
commit 8c320a4d4b
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -102,6 +102,7 @@ class ODMMvsTexStage(types.ODM_Stage):
'keepUnseenFaces': keepUnseenFaces, 'keepUnseenFaces': keepUnseenFaces,
'toneMapping': 'none', 'toneMapping': 'none',
'nadirMode': nadir, 'nadirMode': nadir,
'numThreads': '--num_threads=%s' % args.max_concurrency,
'maxTextureSize': '--max_texture_size=%s' % max_texture_size, 'maxTextureSize': '--max_texture_size=%s' % max_texture_size,
'nvm_file': r['nvm_file'], 'nvm_file': r['nvm_file'],
'intermediate': '--no_intermediate_results' if (r['labeling_file'] or not reconstruction.multi_camera) else '', 'intermediate': '--no_intermediate_results' if (r['labeling_file'] or not reconstruction.multi_camera) else '',
@ -124,6 +125,7 @@ class ODMMvsTexStage(types.ODM_Stage):
'{keepUnseenFaces} ' '{keepUnseenFaces} '
'{nadirMode} ' '{nadirMode} '
'{labelingFile} ' '{labelingFile} '
'{numThreads} '
'{maxTextureSize} '.format(**kwargs)) '{maxTextureSize} '.format(**kwargs))
if r['primary'] and (not r['nadir'] or args.skip_3dmodel): if r['primary'] and (not r['nadir'] or args.skip_3dmodel):