facebookresearch / facebookresearch/sam2

default num_maskmem =7 can we change thing number

Open
#536 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
19.9k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

i'm changing number num_maskmem =12 i'm getting error
maskmem_enc = maskmem_enc + self.maskmem_tpos_enc[self.num_maskmem - t_pos - 1]
IndexError: index 11 is out of bounds for dimension 0 with size 7

i'm changing this in yaml but still it did not changed

Contributor guide

Open the contributing guide

Research direction

Start by tracing how num_maskmem is loaded from the YAML configuration to the maskmem_tpos_enc indexing expression shown in the report. Confirm where the value remains 7, then verify that changing it to 12 is reflected at runtime without the reported IndexError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, yaml
Domain
computer-vision
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.