Replace stride with dilation in ResNet #578
Unanswered
NielsRogge
asked this question in
Q&A
Replies: 1 comment 2 replies
-
@NielsRogge for models that support it, there is an |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In torchvision's implementation of Resnet, there is a
replace_stride_with_dilation
parameter at the init. It's a list of length 3 that can be set to[False, False, True]
for example, if you want to replace strided convolution by dilated convolution in the last convolutional block of the model.I wonder how can I achieve the same thing with timm's implementation? (Reason for this is I'd like to implement Facebook AI's DETR model with support for any timm backend). Facebook itself has 4 variants, two of which use regular ResNet50/101, and two of which replace stride by dilation in the last block.
Beta Was this translation helpful? Give feedback.
All reactions