Closed dengfenglai321 closed 3 years ago
@cendelian SE and CBAM can be directly replaced with Triplet. CBAM, SE and Triplet are dimension preserving modules and thus don't affect the number of channels of the input tensor. SE and CBAM requires the channel parameter because it has a MLP structure which is not present in Triplet Attention. Hopefully this clarifies.
@cendelian SE and CBAM can be directly replaced with Triplet. CBAM, SE and Triplet are dimension preserving modules and thus don't affect the number of channels of the input tensor. SE and CBAM requires the channel parameter because it has a MLP structure which is not present in Triplet Attention. Hopefully this clarifies.
thanks for you reply. and if I use Triplet to replace SE or CBAM. Does the pretrain can use? for example. I use resnet with SE attention, but when I replace SE with triplet, the resnet pretrain can use? maybe i need train resnet with triplet from scrach?
@cendelian No you can't use a SE or CBAM pretrained network and replace them with Triplet. You need to retrain the network with Triple Attention from scratch. But we have provided the weights for pretrained networks which you can use.
如题,有没有方法直接一键替换SE和CBAM
triplet_attention模块初始化并不是与SE一样是channels参数