fix OpenCV num_threads log (#1704)

pull/1715/head
Qing 2022-06-24 11:58:27 +08:00 committed by GitHub
parent 33606ca1e8
commit e8dfa3f26b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ def setup_multi_processes(cfg):
logger.info(f'OpenCV num_threads is `{opencv_num_threads}`')
cv2.setNumThreads(opencv_num_threads)
else:
logger.info(f'OpenCV num_threads is `{cv2.getNumThreads}')
logger.info(f'OpenCV num_threads is `{cv2.getNumThreads()}')
if cfg.data.workers_per_gpu > 1:
# setup OMP threads