Skip to content

Conversation

@Johnson-Wang
Copy link
Collaborator

  • Allows users to define hooks in configs
  • Reformatted.

@codecov
Copy link

codecov bot commented Jul 24, 2020

Codecov Report

Merging #3395 into master will decrease coverage by 0.11%.
The diff coverage is 20.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3395      +/-   ##
==========================================
- Coverage   57.97%   57.86%   -0.12%     
==========================================
  Files         202      202              
  Lines       13491    13498       +7     
  Branches     2282     2284       +2     
==========================================
- Hits         7822     7811      -11     
- Misses       5310     5327      +17     
- Partials      359      360       +1     
Flag Coverage Δ
#unittests 57.86% <20.00%> (-0.12%) ⬇️

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

Impacted Files Coverage Δ
mmdet/models/dense_heads/corner_head.py 44.69% <ø> (ø)
mmdet/models/losses/iou_loss.py 29.94% <0.00%> (ø)
mmdet/apis/train.py 18.33% <25.00%> (-0.54%) ⬇️
mmdet/models/roi_heads/mask_scoring_roi_head.py 81.57% <0.00%> (-18.43%) ⬇️
mmdet/models/roi_heads/mask_heads/maskiou_head.py 92.30% <0.00%> (-5.50%) ⬇️

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 b88f538...e66b444. Read the comment docs.

runner.register_hook(eval_hook(val_dataloader, **eval_cfg))

# user-defined hooks
if cfg.get('hooks', None):
Copy link
Member

Choose a reason for hiding this comment

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

Rename the field hooks to additional_hooks or custom_hooks?

@hellock hellock merged commit 17c0f8e into open-mmlab:master Jul 24, 2020
hellock added a commit that referenced this pull request Jul 24, 2020
hellock added a commit that referenced this pull request Jul 24, 2020
mike112223 pushed a commit to mike112223/mmdetection that referenced this pull request Aug 25, 2020
* Add hooks

* change hooks to custom_hooks
mike112223 pushed a commit to mike112223/mmdetection that referenced this pull request Aug 25, 2020
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