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

[Feature] Support PointNet++ decode head #479

Merged
merged 5 commits into from
May 8, 2021

Conversation

Wuziyi616
Copy link
Contributor

Add decode_head into codebase for segmentation task. Implement a base head and a PN++ head.

out_sa_xyz = []
out_sa_features = []
out_sa_indices = []
out_sa_xyz = [xyz]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In PN++ for segmentation, we need all the sa_xyz and sa_features, so I include the first xyz here.
I have checked the codebase, only 3DSSD uses PN2MSG, and it only uses the last out_sa_xyz and out_sa_features, so adding a first element won't affect its performance.

fp_xyz=fp_xyz,
fp_features=fp_features,
fp_indices=fp_indices,
sa_xyz=sa_xyz,
Copy link
Contributor Author

@Wuziyi616 Wuziyi616 Apr 24, 2021

Choose a reason for hiding this comment

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

We need sa xyz/features in PN++ for seg.

@Wuziyi616
Copy link
Contributor Author

I have added some comments about the changes I made above. Please check them before reviewing my code :)

@codecov
Copy link

codecov bot commented Apr 24, 2021

Codecov Report

Merging #479 (7889c91) into master (3640070) will decrease coverage by 0.12%.
The diff coverage is 36.14%.

❗ Current head 7889c91 differs from pull request most recent head ae18755. Consider uploading reports for the commit ae18755 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master     #479      +/-   ##
==========================================
- Coverage   50.66%   50.54%   -0.13%     
==========================================
  Files         189      194       +5     
  Lines       14455    14527      +72     
  Branches     2366     2374       +8     
==========================================
+ Hits         7324     7343      +19     
- Misses       6638     6691      +53     
  Partials      493      493              
Flag Coverage Δ
unittests 50.54% <36.14%> (-0.13%) ⬇️

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

Impacted Files Coverage Δ
mmdet3d/models/backbones/pointnet2_sa_ssg.py 63.63% <ø> (ø)
mmdet3d/models/backbones/pointnet2_sa_msg.py 60.65% <27.27%> (-3.63%) ⬇️
mmdet3d/models/decode_heads/decode_head.py 34.14% <34.14%> (ø)
mmdet3d/models/decode_heads/pointnet2_head.py 35.71% <35.71%> (ø)
mmdet3d/models/__init__.py 100.00% <100.00%> (ø)
mmdet3d/models/decode_heads/__init__.py 100.00% <100.00%> (ø)
mmdet3d/datasets/waymo_dataset.py 10.36% <0.00%> (-8.81%) ⬇️
mmdet3d/ops/pointnet_modules/builder.py 46.66% <0.00%> (-3.34%) ⬇️
mmdet3d/datasets/pipelines/formating.py 56.00% <0.00%> (-2.00%) ⬇️
mmdet3d/datasets/builder.py 59.25% <0.00%> (-1.46%) ⬇️
... and 17 more

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 3640070...ae18755. Read the comment docs.

@Wuziyi616 Wuziyi616 added the WIP label Apr 30, 2021
@Wuziyi616 Wuziyi616 marked this pull request as draft April 30, 2021 04:35
@ZwwWayne ZwwWayne removed the WIP label May 8, 2021
Copy link
Contributor Author

@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.

@ZwwWayne I think this PR is ready.

@Wuziyi616 Wuziyi616 marked this pull request as ready for review May 8, 2021 13:32
@ZwwWayne ZwwWayne merged commit 53e0622 into open-mmlab:master May 8, 2021
@Wuziyi616 Wuziyi616 deleted the pn2_decode_head branch May 8, 2021 14:18
tpoisonooo pushed a commit to tpoisonooo/mmdetection3d that referenced this pull request Sep 5, 2022
open-mmlab#479)

* If a cuda launch error occurs, verify if cuda device requires top_k to be reduced.

* Fixed lint

* Clang format

* Fixed lint, clang-format
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