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

[Enhance] Move train_cfg test_cfg to model #307

Merged
merged 16 commits into from
Feb 23, 2021

Conversation

xiliu8006
Copy link
Contributor

Move train_cfg/test_cfg into model in model configs

@codecov
Copy link

codecov bot commented Feb 15, 2021

Codecov Report

Merging #307 (b8d3fd6) into master (ac9a3e8) will increase coverage by 0.00%.
The diff coverage is 81.81%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #307   +/-   ##
=======================================
  Coverage   50.23%   50.24%           
=======================================
  Files         173      173           
  Lines       11585    11591    +6     
  Branches     1803     1804    +1     
=======================================
+ Hits         5820     5824    +4     
- Misses       5404     5405    +1     
- Partials      361      362    +1     
Flag Coverage Δ
unittests 50.24% <81.81%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
mmdet3d/models/fusion_layers/point_fusion.py 37.62% <ø> (ø)
mmdet3d/models/builder.py 88.88% <60.00%> (-6.57%) ⬇️
mmdet3d/apis/inference.py 60.71% <100.00%> (+0.71%) ⬆️
mmdet3d/models/dense_heads/centerpoint_head.py 47.01% <100.00%> (ø)

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 5592a50...b8d3fd6. Read the comment docs.

point_cloud_range = [-54, -54, -5.0, 54, 54, 3.0]

model = dict(
pts_voxel_layer=dict(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need lines 7-12?

model = dict(
pts_voxel_layer=dict(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need lines 7-9?

point_cloud_range = [-51.2, -51.2, -5.0, 51.2, 51.2, 3.0]

model = dict(
pts_voxel_layer=dict(point_cloud_range=point_cloud_range),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need lines 6-7

@ZwwWayne
Copy link
Collaborator

Please also modify the documentation.

tools/train.py Outdated
@@ -136,7 +136,7 @@ def main():
meta['seed'] = args.seed

model = build_detector(
cfg.model, train_cfg=cfg.train_cfg, test_cfg=cfg.test_cfg)
cfg.model, train_cfg=cfg.model.train_cfg, test_cfg=cfg.model.test_cfg)
Copy link
Collaborator

@ZwwWayne ZwwWayne Feb 21, 2021

Choose a reason for hiding this comment

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

We should directly use cfg.model without setting train_cfg and test_cfg, see here.

@ZwwWayne
Copy link
Collaborator

Add migration section for the config refactoring like here.

configs/centerpoint/README.md Outdated Show resolved Hide resolved
docs/tutorials/config.md Outdated Show resolved Hide resolved
docs/tutorials/config.md Outdated Show resolved Hide resolved
tools/test.py Outdated Show resolved Hide resolved
@ZwwWayne ZwwWayne merged commit a481f5a into open-mmlab:master Feb 23, 2021
tpoisonooo pushed a commit to tpoisonooo/mmdetection3d that referenced this pull request Sep 5, 2022
* fix DataContainer case for get_tensor_from_input

* fix docstring
tpoisonooo pushed a commit to tpoisonooo/mmdetection3d that referenced this pull request Sep 5, 2022
tpoisonooo added a commit to tpoisonooo/mmdetection3d that referenced this pull request Sep 5, 2022
* fix pose demo and windows build (open-mmlab#307)

* init

* Update nms_rotated.cpp

* add postprocessing_masks gpu version (open-mmlab#276)

* add postprocessing_masks gpu version

* default device cpu

* pre-commit fix

Co-authored-by: hadoop-basecv <hadoop-basecv@set-gh-basecv-serving-classify11.mt>

* fixed a bug causes text-recognizer to fail when (non-NULL) empty bboxes list is passed (open-mmlab#310)

* [Fix] include missing <type_traits> for formatter.h (open-mmlab#313)

* fix formatter

* relax GCC version requirement

* fix

* fix lint

* fix lint

* [Fix] MMEditing cannot save results when testing (open-mmlab#336)

* fix show

* lint

* remove redundant codes

* resolve comment

* type hint

* docs(build): fix typo (open-mmlab#352)

* docs(build): add missing build option

* docs(build): add onnx install

* style(doc): trim whitespace

* docs(build): revert install onnx

* docs(build): add ncnn LD_LIBRARY_PATH

* docs(build): fix path error

* fix openvino export tmp model, add binary flag (open-mmlab#353)

* init circleci (open-mmlab#348)

* fix wrong input mat type (open-mmlab#362)

* fix wrong input mat type

* fix lint

* fix(docs): remove redundant doc tree (open-mmlab#360)

* fix missing ncnn_DIR & InferenceEngine_DIR (open-mmlab#364)

* update doc

Co-authored-by: Chen Xin <xinchen.tju@gmail.com>
Co-authored-by: Shengxi Li <982783556@qq.com>
Co-authored-by: hadoop-basecv <hadoop-basecv@set-gh-basecv-serving-classify11.mt>
Co-authored-by: lzhangzz <lzhang329@gmail.com>
Co-authored-by: Yifan Zhou <singlezombie@163.com>
Co-authored-by: tpoisonooo <khj.application@aliyun.com>
Co-authored-by: lvhan028 <lvhan_028@163.com>
tpoisonooo pushed a commit to tpoisonooo/mmdetection3d that referenced this pull request Sep 5, 2022
* init

* add doc

* add

* Update test_ops.py

* fix bug

* fix pose demo and windows build (open-mmlab#307)

* add postprocessing_masks gpu version (open-mmlab#276)

* add postprocessing_masks gpu version

* default device cpu

* pre-commit fix

Co-authored-by: hadoop-basecv <hadoop-basecv@set-gh-basecv-serving-classify11.mt>

* fixed a bug causes text-recognizer to fail when (non-NULL) empty bboxes list is passed (open-mmlab#310)

* [Fix] include missing <type_traits> for formatter.h (open-mmlab#313)

* fix formatter

* relax GCC version requirement

* fix lint

* Update onnxruntime.md

* fix lint

Co-authored-by: Chen Xin <xinchen.tju@gmail.com>
Co-authored-by: Shengxi Li <982783556@qq.com>
Co-authored-by: hadoop-basecv <hadoop-basecv@set-gh-basecv-serving-classify11.mt>
Co-authored-by: lzhangzz <lzhang329@gmail.com>
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