Skip to content

Conversation

yger
Copy link
Collaborator

@yger yger commented Sep 29, 2025

Currently, the way we are computing the similarity extension precomputes a large mask matrix of size n_templates x n_templates x n_channels. But it these numbers are large, this is saturating the memory for no reasons, because actually, we only need one row at a time while computing similarities. This is a patch for the situation and should solve #4150
For some unknow reason, I can not get numba use the python function get_mask_for_sparse_template(), thus there is some code duplication

@alejoe91 alejoe91 changed the title Patch for memory usage in tempalte_similarity Patch for memory usage in template_similarity Sep 30, 2025
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

Successfully merging this pull request may close these issues.

1 participant