2024-11-08Multi-Scale and Detail-Enhanced Segment Anything-1-MEEM-差分边缘增强模块`importtorch.nnasnnimporttorchclassMEEM(nn.Module):definit(self,in_dim,hidden_dim,width=4,norm=nn.BatchNorm2d,act=nn.GELU):super().init()self.in_dim=in_dimself.hidden_dim=hidden_dimself.width=widthself.in_conv=nn.Sequential(nn