Skip to content

Commit

Permalink
fix OpenCV num_threads log (#1704)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanster authored Jun 24, 2022
1 parent 33606ca commit e8dfa3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmseg/utils/set_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8dfa3f

Please sign in to comment.