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

[Enhancement] Support value_proj_ratio in MultiScaleDeformableAttention #2452

Merged
merged 10 commits into from
Dec 11, 2022

Conversation

okotaku
Copy link
Contributor

@okotaku okotaku commented Nov 24, 2022

Motivation

Modified for use with ViT-Adapter.
https://github.com/czczup/ViT-Adapter/blob/main/detection/ops/modules/ms_deform_attn.py#L29

Related PR

open-mmlab/mmpretrain#1209
open-mmlab/mmdetection#9354

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.

@codecov
Copy link

codecov bot commented Nov 24, 2022

Codecov Report

Base: 66.62% // Head: 66.62% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (64df838) compared to base (104aaa8).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##              2.x    #2452   +/-   ##
=======================================
  Coverage   66.62%   66.62%           
=======================================
  Files         120      120           
  Lines        7799     7800    +1     
  Branches     1067     1067           
=======================================
+ Hits         5196     5197    +1     
  Misses       2436     2436           
  Partials      167      167           
Flag Coverage Δ
unittests 66.62% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
mmcv/ops/multi_scale_deform_attn.py 75.83% <100.00%> (+0.20%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

okotaku and others added 3 commits November 24, 2022 17:59
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
@zhouzaida zhouzaida merged commit 4336070 into open-mmlab:2.x Dec 11, 2022
tyomj pushed a commit to tyomj/mmcv that referenced this pull request May 8, 2023
…on (open-mmlab#2452)

* add ratio in ms_deform_attn_

* add ratio in ms_deform_attn

* Update mmcv/ops/multi_scale_deform_attn.py

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* Update tests/test_ops/test_ms_deformable_attn.py

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* add ratio in ms_deform_attn

* add ratio in ms_deform_attn

* add ratio in ms_deform_attn

* add ratio in ms_deform_attn

* add ratio in ms_deform_attn

* add ratio in ms_deform_attn

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.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