Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mask_decoder mismatch with raw SAM mask_decoder #42

Open
wade0604 opened this issue Dec 18, 2023 · 2 comments
Open

mask_decoder mismatch with raw SAM mask_decoder #42

wade0604 opened this issue Dec 18, 2023 · 2 comments

Comments

@wade0604
Copy link

src = torch.repeat_interleave(image_embeddings, tokens.shape[0], dim=0)

Why did you comment out this line in your mask decoder

@Cjl-MedSeg
Copy link
Collaborator

The result of doing this is to expand the dimension of image_embeddings to match the size of tokens. We have already performed a similar operation during training, so commenting this line here will not affect the normal functioning of the model.

@wade0604
Copy link
Author

wade0604 commented Dec 25, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants