-
Notifications
You must be signed in to change notification settings - Fork 6
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
[refactor] RT-DETR hybrid encoder #581
Conversation
class RepConv(nn.Module): | ||
""" | ||
A convolutional block that combines two convolution layers (kernel and point-wise conv). | ||
""" |
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 renaming RepVggBlock
-> RepConv
is not proper to this class.
Actually, RepVGG block is came from https://arxiv.org/abs/2101.03697, this block is named by author.
Also, RepVggBlock
should have residual connection option according to the original paper.
And, please add original codebase reference so that we can keep an eye on code license issue.
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.
Thank you for the suggestions! I've include your feedback via additional commits👍
…nto 529-refactor-repblock
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.
LGTM!
Description
This PR aims to refactor replaceable blocks within RT-DETR hybrid encoder (e.g., ConvNormLayer, RepVGG).
Closes: #529
We recommend to link at least one existing issue for PR. Before your create a PR, please check if there is an issue for this change.
Change(s)
CSPRepLayer
to op.customConvNormLayer
toConvLayer
in op.customRepVGG
with custom operation layers.Code Formatting
If you PR to either
master
ordev
branch, you should follow the code linting process. Please check your code withlint_check.sh
in./scripts
directory.For more information, please read the contribution guide in
CONTRIBUTING.md
.Changelog
If your PR is granted to
dev
branch, codeowner will add a brief summary of the change to the Upcoming Release section of theCHANGELOG.md
file including a link to the PR (formatted in markdown) and a link to your github profile.For example,
Please enable Allow edits and access to secrets by maintainers so that our maintainers can update the
CHANGELOG.md
.