Dual_SAM icon indicating copy to clipboard operation
Dual_SAM copied to clipboard

关于Global_adapter1的疑问

Open Yi-Heng opened this issue 10 months ago • 3 comments

class Global_adapter1(nn.Module): def init(self, img_size=512, patch_size=16, embed_dim=768, in_chans=3): super().init()

def forward(self, x, ori, gamma, fake_index):

    return ori, gamma

ori_prompt,gamma_prompt = self.Global_adapter(dense_prompt_embeddings,gamma_embed,mask_embed,fake_index) 请问这里传入的顺序是gamma_embed,mask_embed,然而Global_adapter1按顺序返回ori, gamma,这里是把一个分支的embedding特征作为另外一个分支的prompt吗

Yi-Heng avatar Apr 15 '24 02:04 Yi-Heng