Closed vk-rrr closed 5 months ago
原始分支也算一个分支
好的,谢谢解答
class embed_net(nn.Module): def init(self, class_num, dataset, arch='resnet50'): super(embed_net, self).init()
self.thermal_module = thermal_module(arch=arch)
self.visible_module = visible_module(arch=arch)
self.base_resnet = base_resnet(arch=arch)
self.dataset = dataset
if self.dataset == 'regdb':
pool_dim = 1024
self.DEE = DEE_module(512)
self.MFA1 = MFA_block(256, 64, 0)
self.MFA2 = MFA_block(512, 256, 1)
else:
pool_dim = 2048
self.DEE = DEE_module(1024)
self.MFA1 = MFA_block(256, 64, 0)
self.MFA2 = MFA_block(512, 256, 1)
self.MFA3 = MFA_block(1024, 512, 1)
您好,请问代码这里只有3个MFA模块,但是论文Figure 3.中有4个MFA模块,一共有Stage0-4五个阶段,应该怎么理解?
class DEE_module(nn.Module): def init(self, channel, reduction=16): super(DEE_module, self).init()
请问,代码中这里是不是只算两个分支呀? 论文中,说明了Three branches