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

Missing method clear_non_cond_mem_around_input #571

Open
tonydavis629 opened this issue Feb 13, 2025 · 0 comments
Open

Missing method clear_non_cond_mem_around_input #571

tonydavis629 opened this issue Feb 13, 2025 · 0 comments

Comments

@tonydavis629
Copy link

SAM2VideoPredictor is missing a method self._clear_obj_non_cond_mem_around_input that is referenced in propagate_in_video.

if self.clear_non_cond_mem_around_input:
# clear non-conditioning memory of the surrounding frames
self._clear_obj_non_cond_mem_around_input(
inference_state, frame_idx, obj_idx)

I ask because SAM2VideoPredictor's inference_state grows endlessly with video length, I am trying to reduce memory consumption on inference_state, and it seems like this was considered but maybe forgotten?

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