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

[Feature] Support custom hooks in IterBasedRunner. #1193

Merged
merged 1 commit into from
Jul 13, 2021

Conversation

mzr1996
Copy link
Member

@mzr1996 mzr1996 commented Jul 12, 2021

Motivation

IterBasedRunner doesn't support custom hooks by now.

Modification

Support custom hooks in IterBasedRunner.

BC-breaking (Optional)

No

Use cases (Optional)

Refers to #1120

@mzr1996 mzr1996 changed the title Support custom hooks in IterBasedRunner. [Feature] Support custom hooks in IterBasedRunner. Jul 12, 2021
@mzr1996
Copy link
Member Author

mzr1996 commented Jul 12, 2021

@MeowZheng

@codecov
Copy link

codecov bot commented Jul 12, 2021

Codecov Report

Merging #1193 (f39371b) into master (96c4b70) will increase coverage by 0.03%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1193      +/-   ##
==========================================
+ Coverage   67.97%   68.01%   +0.03%     
==========================================
  Files         159      159              
  Lines       10434    10429       -5     
  Branches     1899     1899              
==========================================
  Hits         7093     7093              
+ Misses       2970     2965       -5     
  Partials      371      371              
Flag Coverage Δ
unittests 68.01% <0.00%> (+0.03%) ⬆️

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

Impacted Files Coverage Δ
mmcv/runner/iter_based_runner.py 60.00% <0.00%> (+2.14%) ⬆️

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 96c4b70...f39371b. Read the comment docs.

@mzr1996 mzr1996 force-pushed the iter_custom_hook branch from d554087 to f39371b Compare July 12, 2021 04:11
@zhouzaida zhouzaida requested review from MeowZheng and nbei July 12, 2021 07:09
Copy link
Collaborator

@MeowZheng MeowZheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ZwwWayne ZwwWayne merged commit a5684b0 into open-mmlab:master Jul 13, 2021
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.

3 participants