Skip to content

[Docs] Fix the format of return#1462

Merged
ZwwWayne merged 6 commits intoopen-mmlab:masterfrom
zhouzaida:fix-ops-docstring
Dec 9, 2021
Merged

[Docs] Fix the format of return#1462
ZwwWayne merged 6 commits intoopen-mmlab:masterfrom
zhouzaida:fix-ops-docstring

Conversation

@zhouzaida
Copy link
Copy Markdown
Collaborator

@zhouzaida zhouzaida commented Nov 5, 2021

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.

Motivation

Fix the format of return

Modification

mmcv/ops/*.py

BC-breaking (Optional)

Does the modification introduce changes that break the backward-compatibility of the downstream repositories?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.

Use cases (Optional)

If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.

Checklist

Before PR:

  • I have read and followed the workflow indicated in the CONTRIBUTING.md to create this PR.
  • Pre-commit or linting tools indicated in CONTRIBUTING.md are used to fix the potential lint issues.
  • Bug fixes are covered by unit tests, the case that causes the bug should be added in the unit tests.
  • New functionalities are covered by complete unit tests. If not, please add more unit test to ensure the correctness.
  • The documentation has been modified accordingly, including docstring or example tutorials.

After PR:

  • If the modification has potential influence on downstream or other related projects, this PR should be tested with some of those projects, like MMDet or MMCls.
  • CLA has been signed and all committers have signed the CLA in this PR.

@zhouzaida zhouzaida requested a review from ZwwWayne November 5, 2021 06:49
@zhouzaida zhouzaida added the WIP label Nov 5, 2021
@zhouzaida zhouzaida removed the WIP label Nov 8, 2021
@zhouzaida zhouzaida added the WIP label Nov 16, 2021
mmcv/ops/nms.py Outdated
tuple: kept dets(boxes and scores) and indice, which is always the \
same data type as the input.
tuple: kept dets (boxes and scores) and indice, which is always the
same data type as the input.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

which is always the same data type -> which always have the same data type

pixel_assignment (List[List[float]]): The instance coordinate list.
Each element consists of averaged confidence, pixel number, and
coordinates (x_i, y_i for all pixels) in order.
list[list[float]]: The instance coordinate list. Each element consists
Copy link
Copy Markdown
Contributor

@ZCMax ZCMax Dec 6, 2021

Choose a reason for hiding this comment

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

coordinates and attributes

features (Tensor): (B, C, N) Descriptors of the features.
points_xyz (torch.Tensor): (B, N, 3) xyz coordinates of the
features.
features (torch.Tensor): (B, C, N) Descriptors of the features.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

points_xyz (torch.Tensor): (B, N, 3) xyz coordinates of the points.
features (torch.Tensor): (B, C, N) features of the points.

indices (torch.Tensor): (B, n, 3) index three nearest neighbors
of the target features in features
weight (Tensor): (B, n, 3) weights of interpolation
weight (torch.Tensor): (B, n, 3) weights of interpolation
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

weights of three nearest neighbor features for the target features.

@zhouzaida zhouzaida removed the WIP label Dec 6, 2021
Tensor: shape (B, N, 3), L2 distance of each point in target
set to their corresponding nearest neighbors.
torch.Tensor: shape (B, N, 3), L2 distance of each point in target
set to their corresponding nearest neighbors.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
set to their corresponding nearest neighbors.
set to their corresponding top-3 nearest neighbors.

zhouzaida and others added 2 commits December 7, 2021 20:20
* update ops docstring

* fix typos

Co-authored-by: ChaimZhu <zhuchenming@pjlab.org.cn>
@zhouzaida zhouzaida requested a review from ZwwWayne December 7, 2021 13:36
@ZwwWayne ZwwWayne merged commit c60a17b into open-mmlab:master Dec 9, 2021
@zhouzaida zhouzaida deleted the fix-ops-docstring branch December 9, 2021 02:57
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