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] Unify camera poses #653

Merged
merged 7 commits into from
Jun 30, 2021
Merged

Conversation

filaPro
Copy link
Contributor

@filaPro filaPro commented Jun 16, 2021

Replace calib['K'] and calib['Rt'] with img_meta['depth2img'] for SUN RGB-D to be like img_meta['lidar2img'] for outdoor datasets. More discussion can be found in #620#issuecomment-859664418.

This PR affects visualization on SUN RGB-D and ImVoteNet model. I tested these 2 things. Validation mAP for SUN RGB-D improved from 64.04 to 64.61.

@filaPro
Copy link
Contributor Author

filaPro commented Jun 16, 2021

Sorry, will think about failed tests later.

@codecov
Copy link

codecov bot commented Jun 16, 2021

Codecov Report

Merging #653 (514b74b) into master (d61476a) will decrease coverage by 0.01%.
The diff coverage is 76.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #653      +/-   ##
==========================================
- Coverage   51.02%   51.01%   -0.02%     
==========================================
  Files         204      204              
  Lines       15395    15383      -12     
  Branches     2492     2488       -4     
==========================================
- Hits         7856     7848       -8     
+ Misses       7021     7017       -4     
  Partials      518      518              
Flag Coverage Δ
unittests 51.01% <76.00%> (-0.02%) ⬇️

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

Impacted Files Coverage Δ
mmdet3d/apis/inference.py 54.95% <0.00%> (+1.32%) ⬆️
mmdet3d/core/bbox/box_np_ops.py 26.81% <ø> (ø)
mmdet3d/core/bbox/structures/coord_3d_mode.py 61.87% <ø> (-1.26%) ⬇️
mmdet3d/datasets/pipelines/formating.py 56.00% <ø> (ø)
mmdet3d/models/detectors/imvotenet.py 28.65% <0.00%> (ø)
mmdet3d/core/bbox/structures/utils.py 97.14% <100.00%> (+0.08%) ⬆️
mmdet3d/core/visualizer/image_vis.py 71.83% <100.00%> (-2.25%) ⬇️
mmdet3d/datasets/sunrgbd_dataset.py 75.55% <100.00%> (+0.84%) ⬆️
mmdet3d/models/fusion_layers/vote_fusion.py 93.33% <100.00%> (ø)
mmdet3d/datasets/utils.py 66.66% <0.00%> (-2.39%) ⬇️

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 d61476a...514b74b. Read the comment docs.

Copy link
Contributor

@Wuziyi616 Wuziyi616 left a comment

Choose a reason for hiding this comment

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

Good job! Overall the code is much cleaner and easy to follow now. Can you kindly post a few visualization of ImVoteNet so that we can make sure the correctness of this PR? (Also some browse_dataset results on SUN RGB-D multi-modality task if you have time)

mmdet3d/apis/inference.py Show resolved Hide resolved
mmdet3d/core/bbox/structures/utils.py Outdated Show resolved Hide resolved
mmdet3d/core/visualizer/image_vis.py Show resolved Hide resolved
@filaPro
Copy link
Contributor Author

filaPro commented Jun 17, 2021

Also the CI is broken. Probably not by my commit.

@Wuziyi616
Copy link
Contributor

Also the CI is broken. Probably not by my commit.

Yes it's because of MMSeg version. Will raise a PR to fix it.

@filaPro
Copy link
Contributor Author

filaPro commented Jun 17, 2021

Hi @Wuziyi616 ,
I checked browse_dataset as you requested and fixed calib there. Now ImVoteNet visualization and browse_dataset visualization are the same for master and current branch. The results are in https://disk.yandex.ru/d/d_22eIbR_2yJyA .

@Wuziyi616
Copy link
Contributor

Hi @filaPro, please merge master so that the CI failure caused by MMSeg version incompatibility will be solved. Then we can run CI to check your PR's correctness. Thanks.

@filaPro
Copy link
Contributor Author

filaPro commented Jun 21, 2021

@Wuziyi616 Done.
@THU17cyz Fixed your comments.

Copy link
Contributor

@Wuziyi616 Wuziyi616 left a comment

Choose a reason for hiding this comment

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

Great work!

@ZwwWayne ZwwWayne merged commit ff62af6 into open-mmlab:master Jun 30, 2021
@filaPro filaPro deleted the unify_camera_poses branch June 30, 2021 18:15
@filaPro filaPro mentioned this pull request Aug 23, 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.

5 participants