Algorithm 1: Spatial attention bridge block
Inputs: The input maps of the four channel attention bridge block Ci,i=1,2,3,4
Outputs: Si,i=1,2,3,4
1: χmeani=AvgPool(Ci) /*avg-pooling*/
2: χmaxi=MaxPool(Ci)/*max-pooling*/
3: χsi=Concat(hmeani,hmaxi)/*Concatenate the feature map odd*/
4: α=Conv7×7(hc)/*7×7 convolution operation*/
5: ε=σ(β)/*After sigmoid, the feature map becomeC×H×1*/
6: Si=ε*Ci+Ci/*The feature map of sigmoid with the original feature and then add */
End
Algorithm 2: Channel attention bridge block
Inputs: The input maps of the four stagesEi,i=1,2,3,4
Outputs: Ci,i=1,2,3,4
1: hmeani=AvgPool(Ci) /*avg-pooling*/
2: hc=Concat(hmean1,hmean2,hmean3,hmean4)/*Concatenate the feature map of avg-pooling*/
3: β=Conv3×3(hc)/*3×3 convolution operation*/
4: γ=σ(β)/*After sigmoid, the feature map becomeC×H×1*/
5: Ci=γ*Ei+Ei/*The feature map of sigmoid with the original feature and then add */
微信里点“发现”,扫一下
二维码便可将本文分享至朋友圈。
Set citation alerts for the article
Please enter your email address
CancelConfirm