-
Notifications
You must be signed in to change notification settings - Fork 222
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
learnTemplates: error indexing into W using gpuArray/subsref on batch with Nfilt=0 #232
Comments
I'm trying to look into this (look in issues #227 and #218). I think it happens when units/batches are having zero spikes. In my case, it prompts an error here: >>> dbstop if error
>> master_kilosort
Looking for data inside ./
Time 0s. Computing whitening matrix..
Getting channel whitening matrix...
Channel-whitening matrix computed.
Time 1s. Loading raw data and applying filters...
Time 34s. Finished preprocessing 801 batches.
random seed for clusterSingleBatches: 1
Time 36s. Optimizing templates ...
One or more output arguments not assigned during call to "mexMPnu8".
Error in learnTemplates (line 149)
mexMPnu8(Params, dataRAW, single(U), single(W), single(mu), iC-1, iW-1, UtU, iList-1, ...
Error in learnAndSolve8b (line 15)
rez = learnTemplates(rez, iorder0);
Error in master_kilosort (line 55)
rez = learnAndSolve8b(rez);
149 mexMPnu8(Params, dataRAW, single(U), single(W), single(mu), iC-1, iW-1, UtU, iList-1, ... my K>> size(dWU)
ans =
61 62 0 |
I worked around this by no longer exporting raw data with longish periods of zero-padding between recordings. I simply directly concatenate recordings from the same session, then later work out the absolute spike times relative to the start of the first recording of the session. |
After commenting out the print statement that was triggered by a batch with blank raw data with no spikes that was causing the error in #231, I'm now hitting this error slightly later, which seems to be triggered by having
Nfilt=0
:If I print out all the contents of
dat
(same size as dataRAW), most of it is zeros for this batch, so this is almost certainly at least partially overlapping with the blank periods of data described in #231. Not sure how to proceed.The text was updated successfully, but these errors were encountered: