Extracting intermediate features #358
Unanswered
indigoviolet
asked this question in
Q&A
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Thanks to rwightman for this excellent project.
I'm trying to use
timm
to extract features fromresnet50
(for example) and use them in an object detection context (say Retinanet). I looked into the receptive field for the extracted features (for a 320x320 image in this case) and found the following:So if I wanted to get some intermediate layers between these, for ex.
layer1.0
hasRF=19
-- how would I go about doing that? Is there a recommended approach?One way I'm considering is to construct the Resnet instance, then change its
feature_info
attribute to have what I want, and then construct theFeatureListNet
from that. Is that the right way?More generally, have you considered a way other than
out_indices
to provide feature selection. It seems to me that some named notation likeout_layers=['act1', 'layer1.0', 'layer1', 'layer2', 'layer3']
would be more convenient.Beta Was this translation helpful? Give feedback.
All reactions