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

[Fix]: add convert script for Votenet #163

Merged
merged 4 commits into from
Oct 21, 2020

Conversation

encore-zhou
Copy link
Contributor

Fix issue #145 by converting the keys in the checkpoints of votenet models.

@codecov
Copy link

codecov bot commented Oct 12, 2020

Codecov Report

Merging #163 into master will decrease coverage by 0.81%.
The diff coverage is 16.61%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #163      +/-   ##
==========================================
- Coverage   50.31%   49.49%   -0.82%     
==========================================
  Files         164      165       +1     
  Lines       10749    11019     +270     
  Branches     1622     1669      +47     
==========================================
+ Hits         5408     5454      +46     
- Misses       5017     5241     +224     
  Partials      324      324              
Flag Coverage Δ
#unittests 49.49% <16.61%> (-0.82%) ⬇️

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

Impacted Files Coverage Δ
mmdet3d/core/anchor/__init__.py 100.00% <ø> (ø)
mmdet3d/models/dense_heads/anchor3d_head.py 61.85% <0.00%> (ø)
mmdet3d/models/dense_heads/train_mixins.py 6.47% <0.00%> (-2.02%) ⬇️
...et3d/models/roi_heads/mask_heads/primitive_head.py 18.91% <6.89%> (-2.49%) ⬇️
mmdet3d/models/dense_heads/shape_aware_head.py 13.55% <13.55%> (ø)
mmdet3d/core/anchor/anchor_3d_generator.py 94.24% <100.00%> (+0.96%) ⬆️
mmdet3d/models/dense_heads/__init__.py 100.00% <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 f05828b...23458a7. Read the comment docs.

@ZwwWayne ZwwWayne linked an issue Oct 19, 2020 that may be closed by this pull request
@ZwwWayne ZwwWayne merged commit 64a8c45 into open-mmlab:master Oct 21, 2020
@EricWiener
Copy link
Contributor

This is still an issue. When I run python tools/test.py configs/votenet/votenet_16x8_sunrgbd-3d-10class.py checkpoints/votenet_16x8_sunrgbd-3d-10class_20200620_230238-4483c0c0.pth --show --show-dir ./data/votenet/show_results, I get the message:

/home/eric/miniconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/cnn/bricks/conv_module.py:107: UserWarning: ConvModule has norm and bias at the same time
  warnings.warn('ConvModule has norm and bias at the same time')
The model and loaded state dict do not match exactly

unexpected key in source state_dict: bbox_head.conv_pred.0.conv.weight, bbox_head.conv_pred.0.conv.bias, bbox_head.conv_pred.0.bn.weight, bbox_head.conv_pred.0.bn.bias, bbox_head.conv_pred.0.bn.running_mean, bbox_head.conv_pred.0.bn.running_var, bbox_head.conv_pred.0.bn.num_batches_tracked, bbox_head.conv_pred.1.conv.weight, bbox_head.conv_pred.1.conv.bias, bbox_head.conv_pred.1.bn.weight, bbox_head.conv_pred.1.bn.bias, bbox_head.conv_pred.1.bn.running_mean, bbox_head.conv_pred.1.bn.running_var, bbox_head.conv_pred.1.bn.num_batches_tracked, bbox_head.conv_pred.conv_out.weight, bbox_head.conv_pred.conv_out.bias

missing keys in source state_dict: bbox_head.conv_pred.shared_convs.layer0.conv.weight, bbox_head.conv_pred.shared_convs.layer0.conv.bias, bbox_head.conv_pred.shared_convs.layer0.bn.weight, bbox_head.conv_pred.shared_convs.layer0.bn.bias, bbox_head.conv_pred.shared_convs.layer0.bn.running_mean, bbox_head.conv_pred.shared_convs.layer0.bn.running_var, bbox_head.conv_pred.shared_convs.layer1.conv.weight, bbox_head.conv_pred.shared_convs.layer1.conv.bias, bbox_head.conv_pred.shared_convs.layer1.bn.weight, bbox_head.conv_pred.shared_convs.layer1.bn.bias, bbox_head.conv_pred.shared_convs.layer1.bn.running_mean, bbox_head.conv_pred.shared_convs.layer1.bn.running_var, bbox_head.conv_pred.conv_cls.weight, bbox_head.conv_pred.conv_cls.bias, bbox_head.conv_pred.conv_reg.weight, bbox_head.conv_pred.conv_reg.bias

tpoisonooo pushed a commit to tpoisonooo/mmdetection3d that referenced this pull request Sep 5, 2022
* [WIP] Refactor v2.0 (open-mmlab#163)

* Refactor backend wrapper

* Refactor mmdet.inference

* Fix

* merge

* refactor utils

* Use deployer and deploy_model to manage pipeline

* Resolve comments

* Add a real inference api function

* rename wrappers

* Set execute to private method

* Rename deployer deploy_model

* Refactor task

* remove type hint

* lint

* Resolve comments

* resolve comments

* lint

* docstring

* [Fix]: Fix bugs in details in refactor branch (open-mmlab#192)

* [WIP] Refactor v2.0 (open-mmlab#163)

* Refactor backend wrapper

* Refactor mmdet.inference

* Fix

* merge

* refactor utils

* Use deployer and deploy_model to manage pipeline

* Resolve comments

* Add a real inference api function

* rename wrappers

* Set execute to private method

* Rename deployer deploy_model

* Refactor task

* remove type hint

* lint

* Resolve comments

* resolve comments

* lint

* docstring

* Fix errors

* lint

* resolve comments

* fix bugs

* conflict

* lint and typo

* Resolve comment

* refactor mmseg (open-mmlab#201)

* support mmseg

* fix docstring

* fix docstring

* [Refactor]: Get the count of backend files (open-mmlab#202)

* Fix backend files

* resolve comments

* lint

* Fix ncnn

* [Refactor]: Refactor folders of mmdet (open-mmlab#200)

* Move folders

* lint

* test object detection model

* lint

* reset changes

* fix openvino

* resolve comments

* __init__.py

* Fix path

* [Refactor]: move mmseg (open-mmlab#206)

* [Refactor]: Refactor mmedit (open-mmlab#205)

* feature mmedit

* edit2.0

* edit

* refactor mmedit

* fix __init__.py

* fix __init__

* fix formai

* fix comment

* fix comment

* Fix wrong func_name of ConvFCBBoxHead (open-mmlab#209)

* [Refactor]: Refactor mmdet unit test (open-mmlab#207)

* Move folders

* lint

* test object detection model

* lint

* WIP

* remove print

* finish unit test

* Fix tests

* resolve comments

* Add mask test

* lint

* resolve comments

* Refine cfg file

* Move files

* add files

* Fix path

* [Unittest]: Refine the unit tests in mmdet open-mmlab#214

* [Refactor] refactor mmocr to mmdeploy/codebase (open-mmlab#213)

* refactor mmocr to mmdeploy/codebase

* fix docstring of show_result

* fix docstring of visualize

* refine docstring

* replace print with logging

* refince codes

* resolve comments

* resolve comments

* [Refactor]: mmseg  tests (open-mmlab#210)

* refactor mmseg tests

* rename test_codebase

* update

* add model.py

* fix

* [Refactor] Refactor mmcls and the package (open-mmlab#217)

* refactor mmcls

* fix yapf

* fix isort

* refactor-mmcls-package

* fix print to logging

* fix docstrings according to others comments

* fix comments

* fix comments

* fix allentdans comment in pr215

* remove mmocr init

* [Refactor] Refactor mmedit tests (open-mmlab#212)

* feature mmedit

* edit2.0

* edit

* refactor mmedit

* fix __init__.py

* fix __init__

* fix formai

* fix comment

* fix comment

* buff

* edit test and code refactor

* refactor dir

* refactor tests/mmedit

* fix docstring

* add test coverage

* fix lint

* fix comment

* fix comment

* Update typehint (open-mmlab#216)

* update type hint

* update docstring

* update

* remove file

* fix ppl

* Refine get_predefined_partition_cfg

* fix tensorrt version > 8

* move parse_cuda_device_id to device.py

* Fix cascade

* onnx2ncnn docstring

Co-authored-by: Yifan Zhou <[email protected]>
Co-authored-by: RunningLeon <[email protected]>
Co-authored-by: VVsssssk <[email protected]>
Co-authored-by: AllentDan <[email protected]>
Co-authored-by: hanrui1sensetime <[email protected]>
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.

Unable to test votenet pretrained model
3 participants