Open oterocoronel opened 1 year ago
Do you have cells that are appearing in the background?
I don't think negative values makes sense for number of background components.
I wonder if playing with low_rank_background
helps:
low_rank_background: bool, default: True Whether to update the background using a low rank approximation. If False all the nonzero elements of the background components are updated using hals (to be used with one background per patch)
or update_background_components
?
@oterocoronel could you show the full output of your parameters object? You said you are running CNMF not CNMFE?
I have a relatively low background signal in my recording, so I would like to try cnmf with no background components. I have tried to set nb and nb_patch to 0, -1, and -2, but when trying to run:
cnm = cnm.fit(images)
I get this error:
Setting nb to None, as suggested above, results in this other crash: