mmpretrain icon indicating copy to clipboard operation
mmpretrain copied to clipboard

Dummy forward

Open twmht opened this issue 1 year ago • 2 comments

We should add forward_dummy to query flops by mmcv (https://github.com/open-mmlab/mmcv/blob/master/mmcv/cnn/utils/flops_counter.py#L38). Althugh we already have extract_feat, but it's not sync with mmdetection(https://github.com/open-mmlab/mmdetection/blob/master/mmdet/models/detectors/single_stage.py#L48).

we should sync both projects since many people may want to put both together into a single project.

twmht avatar Aug 04 '22 01:08 twmht

Codecov Report

Merging #953 (d0850b0) into master (71ef7ba) will increase coverage by 0.86%. The diff coverage is 100.00%.

:exclamation: Current head d0850b0 differs from pull request most recent head 772dfef. Consider uploading reports for the commit 772dfef to get more accurate results

@@            Coverage Diff             @@
##           master     #953      +/-   ##
==========================================
+ Coverage   84.57%   85.43%   +0.86%     
==========================================
  Files         134      134              
  Lines        8772     8777       +5     
  Branches     1516     1516              
==========================================
+ Hits         7419     7499      +80     
+ Misses       1117     1056      -61     
+ Partials      236      222      -14     
Flag Coverage Δ
unittests 85.35% <100.00%> (+0.78%) :arrow_up:

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

Impacted Files Coverage Δ
mmcls/models/classifiers/image.py 92.00% <100.00%> (+0.69%) :arrow_up:
mmcls/core/visualization/image.py 87.17% <0.00%> (+0.97%) :arrow_up:
mmcls/datasets/builder.py 87.83% <0.00%> (+9.45%) :arrow_up:
mmcls/models/backbones/convmixer.py 98.36% <0.00%> (+9.83%) :arrow_up:
mmcls/datasets/custom.py 100.00% <0.00%> (+11.47%) :arrow_up:
mmcls/models/utils/helpers.py 100.00% <0.00%> (+20.83%) :arrow_up:
mmcls/utils/device.py 100.00% <0.00%> (+27.27%) :arrow_up:
mmcls/utils/setup_env.py 100.00% <0.00%> (+27.27%) :arrow_up:
mmcls/models/backbones/convnext.py 94.78% <0.00%> (+34.78%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

codecov[bot] avatar Aug 04 '22 01:08 codecov[bot]

@mzr1996

can you help me to check CI jobs?

twmht avatar Aug 05 '22 13:08 twmht

The unit tests need to be fixed.

mzr1996 avatar Aug 08 '22 10:08 mzr1996

The unit tests need to be fixed.

sure.

twmht avatar Aug 08 '22 10:08 twmht