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

Checkpoint Loading Error When Increasing num_maskmem in SAM2 #585

Open
Morteza1814 opened this issue Feb 28, 2025 · 0 comments
Open

Checkpoint Loading Error When Increasing num_maskmem in SAM2 #585

Morteza1814 opened this issue Feb 28, 2025 · 0 comments

Comments

@Morteza1814
Copy link

Changing num_maskmem from 7 to 21 in sam2.1_hiera_l.yaml causes a checkpoint loading error due to a size mismatch in maskmem_tpos_enc. The model expects shape [21,1,1,64], but the checkpoint has [7,1,1,64]. Should the model support flexible num_maskmem, or is retraining required for new values?

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

1 participant