Closed masa6161 closed 9 months ago
After posting this issue, I've reviewed and rewrote all of my (modified) scripts.
As a result, using 16 clusters, the initial estimation step was passed, and now, the refinement step is starting.
Perhaps, by my code fault (the part of a programatical determination of some parameters, frame-rate, rf, cnmf_stride, gSig, etc., from metadata), this issue happened. If so, I apologize for the premature submission.
If this problem occurs after some runs, I'd like to inform you again.
Ok thanks for the follow up. Closing the issue for now, but please reopen if this reproduces
Your setup:
My parameter set in the signal extraction is below; fr = 30 decay_time = 0.4
p = 2
gnb = 2
merge_thr = 0.8
rf = 64
stride_cnmf = 12
K = 30
gSig = np.array([4, 4])
gSiz = 2gSig+1
method_init = 'greedy_roi'
ssub = 1
tsub = 1
rolling_length_fac = 3fr; bas_nonneg = True
And tracebacks are here;
File z:\pythoncode\roidetection\caiman_240210.py:227 in do_CNMF cnm = cnm.fit(images)
File ~\anaconda3\envs\caiman\lib\site-packages\caiman\source_extraction\cnmf\cnmf.py:493 in fit self.initialize(Y)
File ~\anaconda3\envs\caiman\lib\site-packages\caiman\source_extraction\cnmf\cnmf.py:963 in initialize initialize_components(Y, sn=estim.sn, options_total=self.params.to_dict(),
File ~\anaconda3\envs\caiman\lib\site-packages\caiman\source_extraction\cnmf\initialization.py:335 in initializecomponents Ain, Cin, , b_in, f_in = greedyROI(
File ~\anaconda3\envs\caiman\lib\site-packages\caiman\source_extraction\cnmf\initialization.py:806 in greedyROI rho_s = scipy.signal.lfilter(rolling_filter, 1., rho**2)
File ~\anaconda3\envs\caiman\lib\site-packages\scipy\signal_signaltools.py:2138 in lfilter out_full = np.apply_along_axis(lambda y: np.convolve(b, y), axis, x)
File ~\anaconda3\envs\caiman\lib\site-packages\numpy\lib\shape_base.py:379 in apply_along_axis res = asanyarray(func1d(inarr_view[ind0], *args, **kwargs))
File ~\anaconda3\envs\caiman\lib\site-packages\scipy\signal_signaltools.py:2138 in
out_full = np.apply_along_axis(lambda y: np.convolve(b, y), axis, x)
File ~\anaconda3\envs\caiman\lib\site-packages\numpy\core\numeric.py:833 in convolve raise ValueError('v cannot be empty')
ValueError: v cannot be empty