-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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 YOLOX-PAI #8778
base: dev
Are you sure you want to change the base?
Conversation
Hi @okotaku , |
act_cfg=act_cfg, | ||
) | ||
|
||
def forward(self, inputs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
feat_heigh
, feat_height
-> feat_high
in yolox_asff_pafpn.py
and yolox_pafpn.py
@@ -0,0 +1,4 @@ | |||
_base_ = './yolox_pai_s_8x8_300e_coco.py' | |||
|
|||
model = dict(bbox_head=dict(type='YOLOXTOODHead')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this config use neck=dict(type='YOLOXASFFPAFPN')
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a mistake. I fixed base config.
It will be better not to remove request for Collaborator reviewers. |
Sorry. When I pushed 'Re-request review', Collaborator reviewers were removed. |
Maybe we should wait for the announcement of MMYOLO or MMDet-YOLO before further discussion. |
nn.SiLU vs. mmcv Swish
|
1st option looks good. I created PR for mmcv. |
Are there any plans or ideas to refactor |
Yes. I will implement it soon. Please wait for a few days. |
@shinya7y I pushed refactored codes. Please review it. |
mlvl_feats[i], | ||
scale_factor=2**(i - self.level), | ||
mode='nearest') | ||
mlvl_wegiths_v.append(self.mlvl_weights[i](mlvl_feats[i])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is easier to understand to use F.max_pool2d
like:
mlvl_weights_v = []
for i, feat in enumerate(x):
for _ in range(self.level - i - 1):
feat = F.max_pool2d(feat, 3, stride=2, padding=1)
feat = self.mlvl_convs[i](feat)
if i > self.level:
feat = F.interpolate(
feat,
scale_factor=2**(i - self.level),
mode='nearest')
mlvl_weights_v.append(self.mlvl_weights[i](feat))
@@ -429,6 +430,52 @@ def test_yolox_pafpn(): | |||
assert outs[i].shape[2] == outs[i].shape[3] == s // (2**i) | |||
|
|||
|
|||
def test_yolox_asff_pafpn(): | |||
s = 32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comment # test the case that length of in_channels is 3
before s = 32
@@ -184,6 +184,7 @@ Results and models are available in the [model zoo](docs/en/model_zoo.md). | |||
<li><a href="configs/deformable_detr">Deformable DETR (ICLR'2021)</a></li> | |||
<li><a href="configs/tood">TOOD (ICCV'2021)</a></li> | |||
<li><a href="configs/ddod">DDOD (ACM MM'2021)</a></li> | |||
<li><a href="configs/yoloxpai">YOLOX-PAI (ArXiv'2022)</a></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update README_zh-CN.md
@okotaku Are you interested in adding related features to mmyolo? And if the algorithm is developed based on dev 3.x, it will be more efficient and simpler to implement. |
@hhaAndroid I will try to develop based on dev-3.x. But there may not be time to contribute to mmyolo. |
assert len(x) == len(self.in_channels) | ||
|
||
mlvl_spatial_importance_map = [] | ||
mlvl_feats = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new variable names are good and discriminable, but could be shorter.
mlvl_feats = []
mlvl_importance = [] # spatial importance map
pip install mmcls>=0.24.0 | ||
``` | ||
|
||
## Usage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either Usage or Note will be sufficient.
LGTM. |
OK |
Ok. But we'd really like you to create PR directly to the dev-3.x branch |
@hhaAndroid |
Motivation
YOLOX-PAI: An Improved YOLOX, Stronger and Faster than YOLOv6
official repo
Related PR
open-mmlab/mmcv#2256
open-mmlab/mmpretrain#1025
Result
Checklist