mirror of
https://github.com/open-mmlab/mmsegmentation.git
synced 2025-06-03 22:03:48 +08:00
fix OpenCV num_threads log (#1704)
This commit is contained in:
parent
33606ca1e8
commit
e8dfa3f26b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user