MCPcopy Create free account
hub / github.com/buaacxf/VIPTR / ResNet_FeatureExtractor

Class ResNet_FeatureExtractor

modules/feature_extraction.py:54–62  ·  view source on GitHub ↗

FeatureExtractor of FAN (http://openaccess.thecvf.com/content_ICCV_2017/papers/Cheng_Focusing_Attention_Towards_ICCV_2017_paper.pdf)

Source from the content-addressed store, hash-verified

52
53
54class ResNet_FeatureExtractor(nn.Module):
55 """ FeatureExtractor of FAN (http://openaccess.thecvf.com/content_ICCV_2017/papers/Cheng_Focusing_Attention_Towards_ICCV_2017_paper.pdf) """
56
57 def __init__(self, input_channel, output_channel=512):
58 super(ResNet_FeatureExtractor, self).__init__()
59 self.ConvNet = ResNet(input_channel, output_channel, BasicBlock, [1, 2, 5, 3])
60
61 def forward(self, input):
62 return self.ConvNet(input)
63
64
65# For Gated RCNN

Callers 1

__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected