Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Speed up training #739

Merged
merged 1 commit into from
Jan 19, 2022
Merged

Conversation

gaotongxiao
Copy link
Collaborator

@gaotongxiao gaotongxiao commented Jan 19, 2022

Motivation

Related PR: open-mmlab/mmdetection#6974

Setting num_threads of OpenCV to 0 and mp_start_method to fork can speed up the overall training process. This PR allows user to configure these values in configs.

However, I've run multiple experiments which showed that restricting MKL and OMP threads rather slows down the training. Therefore, this PR does not implement relevant configuration.

@codecov
Copy link

codecov bot commented Jan 19, 2022

Codecov Report

Merging #739 (4bf12a8) into main (8248802) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #739   +/-   ##
=======================================
  Coverage   84.59%   84.59%           
=======================================
  Files         164      164           
  Lines       10642    10642           
  Branches     1618     1618           
=======================================
  Hits         9003     9003           
  Misses       1295     1295           
  Partials      344      344           
Flag Coverage Δ
unittests 84.59% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8248802...4bf12a8. Read the comment docs.

@gaotongxiao gaotongxiao merged commit ad3957b into open-mmlab:main Jan 19, 2022
@gaotongxiao gaotongxiao deleted the speedup branch January 19, 2022 12:14
gaotongxiao added a commit to gaotongxiao/mmocr that referenced this pull request Jul 15, 2022
gaotongxiao added a commit to gaotongxiao/mmocr that referenced this pull request Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants