-
Notifications
You must be signed in to change notification settings - Fork 15
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
Question/ issue: Does mesmerise-core work with 3D movies? #312
Comments
Hi @rajlakshmi-sawale, is it failing at the local correlations step? If so, #300 is meant to address this, but it hasn't been merged yet. |
OK I just merged that PR; can you try again after installing from the master branch? You will also need caiman version 1.11.2 or later. |
|
Yup, that looks normal, it ran into an error while running but it didn't tell you exactly what it is. What does it show if you run |
To run it on 3D data, do we have to specify any additional parameters?
|
Oh ok you might need to use a different index than -1. If you just print the df you should be able to see which row corresponds to the failed run ("outputs" should be a dict with "success": False) and then you can use that index. |
The traceback in the output doesn't have to be accessed manually, you can call get_output() and it will print the traceback nicely: df.iloc[i].mcorr.get_output() |
Ah, I think you also have to set |
Reload the dataframe from disk after running an item |
The message says you're out of RAM. What are the dimensions of the movie? How many pixels do you have per neuron/ROI? What's your temporal sampling rate? Can you post a mean projectiom of some of the planes. |
How much RAM do you have
…On Tue, Aug 27, 2024, 7:27 PM Rajlakshmi Sawale ***@***.***> wrote:
It is 259,1024,28 with 1200 frames at 2 volumes per second. The neurons
are approx 100-130 pixels.
MAX_avg.jpg (view on web)
<https://github.com/user-attachments/assets/e817ff44-50c5-497d-a6e6-93ef1017c9f6>
—
Reply to this email directly, view it on GitHub
<#312 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACHXXRGSJWU6JVHNJBWXH2TZTSZJRAVCNFSM6AAAAABM552CDCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJTGEZTMNRSHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
128 GB |
Only thing I can think of is to reduce the number of processes, unless
@ethanbb has any ideas. I've never done 3D mcorr or CNMF myself.
…On Tue, Aug 27, 2024, 7:31 PM Rajlakshmi Sawale ***@***.***> wrote:
128 GB
—
Reply to this email directly, view it on GitHub
<#312 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACHXXRGNVC43XTVMKZ5FYH3ZTSZW7AVCNFSM6AAAAABM552CDCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJTGE2DGNRRGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I agree, reduce number of processes by setting the Also, maybe you already did this, but in def to3DFromPixelxTime(self, shape, order='F') -> 'movie':
"""
Transform 2D movie (pixels x time) into 3D or 4D
"""
return to_3D(self,shape[::-1],order=order).T If not, you need to update your version of caiman. |
Oh interesting, I'm guessing I missed this because I only tried rigid 3d mcorr. Can take a look later today. |
Yeah, sorry, the 3D mcorr PR had a bug which wasn't caught since I didn't add tests for both the rigid and piecewise cases. Can you change line 115 of mesmerize_core/algorithms/mcorr.py from |
Thanks for hanging in there! |
Okay, thanks! |
Glad you're making progress! I believe this error is because you need to provide gSig as a 3-element list for 3D CNMF. The same is true for rf and stride in the patch group, if you're using patches. And finally you will have to disable the CNN by setting use_cnn in the quality group to False. |
I'm not sure, I haven't run into that one - you should try debugging it. It looks like at least one of the patch runs is giving an S of None when that's not expected. You can try to see why that's happening by setting a conditional breakpoint somewhere in CNMF.fit, for example. My guess would be that some of your patches are invalid in some way (empty?) and that tweaking your patch settings may fix it (but this is still a bug in caiman, probably). |
Hi, does mesmerise-core work with 3D movies? I tried to run it with my xyzt data but the mcorr failed. Any help would be appreciated!
Thanks!
The text was updated successfully, but these errors were encountered: