Skip to content

修复box_iou_rotated和sigmoid_focal_loss的npu适配层#3320

Merged
HAOCHENYE merged 1 commit intoopen-mmlab:mainfrom
ason-rob:main
Jan 16, 2026
Merged

修复box_iou_rotated和sigmoid_focal_loss的npu适配层#3320
HAOCHENYE merged 1 commit intoopen-mmlab:mainfrom
ason-rob:main

Conversation

@ason-rob
Copy link
Copy Markdown
Contributor

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

修复box_iou_rotated和sigmoid_focal_loss的npu适配层

Modification

  1. box_iou_rotated: 算子校验shape时重复对boxes1校验,修改为对boxes1和2均校验。
  2. sigmoid_focal_loss: 权重计算部分逻辑有错误,修改为与cuda一致的权重计算方式。

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.

@HAOCHENYE HAOCHENYE merged commit a8073c7 into open-mmlab:main Jan 16, 2026
1 of 12 checks passed
lauriebax pushed a commit to VBTI-development/onedl-mmcv that referenced this pull request Jan 19, 2026
lauriebax added a commit to VBTI-development/onedl-mmcv that referenced this pull request Feb 23, 2026
* 修复box_iou_rotated和sigmoid_focal_loss的npu适配层 (open-mmlab#3320)

---------

Co-authored-by: ason-rob <qiucan4@huawei.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.

2 participants