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

What's mean of receptive field, stride and padding of FeatureExtractor class in extractor.py? #22

Open
CTianyou opened this issue Dec 9, 2019 · 1 comment

Comments

@CTianyou
Copy link

CTianyou commented Dec 9, 2019

I wanna extract delf with another network.How to set receptive field, stride and padding of FeatureExtractor class in extractor.py?

@AbyssGaze
Copy link

Maybe you could set on feeder.py:Feeder as:

        if delf_config.arch in ['resnet18']:
            if self.target_layer in ['layer3']:
                self.fmap_depth = 256
                self.rf = 211  # 291.0
                self.stride = 16.0
                self.padding = 105.0
            elif self.target_layer in ['layer4']:
                self.fmap_depth = 512
                self.rf = 435.0
                self.stride = 32.0
                self.padding = 217.0

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

No branches or pull requests

2 participants