模块出处
[ECCV 24] [link] [code] Context-Guided Spatial Feature Reconstruction for Efficient Semantic Segmentation
模块名称
Rectangular self-Calibration Attention (RCA)
模块作用
空间注意力
模块结构
模块代码
import torch
import torch.nn as nn
import torch.nn.functional as F
class RCA(nn.Module):
def __init__(self, inp, kernel_size=1, ratio=1, band_kernel_size=11, dw_size=(1,1), padding