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

Dimension Mismatch Error While Processing Some Videos #1480

Open
zyyk78 opened this issue Mar 5, 2025 · 0 comments
Open

Dimension Mismatch Error While Processing Some Videos #1480

zyyk78 opened this issue Mar 5, 2025 · 0 comments

Comments

@zyyk78
Copy link

zyyk78 commented Mar 5, 2025

My video size is 608x608x25977, and caiman will report the error in cnmf.py, 607.
That is may be caused by incorrect cell number in C and A (1011 vs 996)

Image

then it will crash while calculating YrA = YA - AA.T.dot(Cin).T

The data before step self.update_spatial(Yr, use_init=False) is like this, with 1012 cells

Image

In this part in spatial.py, after ff-nr , nr removed more rows (because here ff have minused nr), and it caused in step A_ = A_[:, :nr], cell number of A_ is smaller than C

Image

then they will return an incorrect result
Maybe I should exchange the position of ff -= nr and nr = nr - len(ff[ff < nr]) ?
Thanks very much !

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