Medical-SAM-Adapter icon indicating copy to clipboard operation
Medical-SAM-Adapter copied to clipboard

self.pos_embed :Dimension mismatch

Open jianjun0407 opened this issue 1 year ago • 0 comments

The shape of the original input image is (256,256,600). After the previous processing, the shape of the current input x of ImageEncoderViT is (600,3,256,256). After self.patch_embed(), The shape of x is (600,16,16,768).

However, the shape of self.pos_embed is (1,64,64,768).

so at line 113, x = x + sel.pos_embed cannot be implemented question

jianjun0407 avatar Aug 16 '23 09:08 jianjun0407