-
Notifications
You must be signed in to change notification settings - Fork 370
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
Input Array Dimension for concatenation size error #1364
Comments
Hello, There are several ways you can do this; I believe you probably can just pass in the list of original files instead of merging them, or if the filenames don't actually represent different sessions, you can do a flatter merge that doesn't preserve the distinctiveness of different filenames. The former is probably better if the data came from multiple sessions (in which case you'll want to look at the demos where we cover how multisession registration works). Cheers, |
Hi Pat, I am using tensorflow 2.4.1, CaImAn version 1.9.13, and python 3.8.0, and I am trying to use GPU during the CaImAn motion correction. I made sure to import pycuda.autoinit and used
the MotionCorrect method in CaImAn returns an cuMemAlloc failed: initialization error. The detailed logs are:
What might caused this error? Is there additional package I need to include? Thanks for your time! Kaiwen Guo |
What kind of GPU are you running it on? |
I am running it on Nvidia GeForce RTX 3070.
Thanks
Kaiwen Guo
…On Mon, Jul 8, 2024 at 6:16 PM Pat Gunn ***@***.***> wrote:
What kind of GPU are you running it on?
—
Reply to this email directly, view it on GitHub
<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_flatironinstitute_CaImAn_issues_1364-23issuecomment-2D2215443545&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=PBqA4ZL9u_nR0seDcrIZyQ&m=jD7MW6QVBCylObwL7uJ-OLlTQ9GuCxvdd4erY6xUanbNq85KM7gOny688_LFHRhV&s=BB01DFZ4YPiWU1dyTNCVN0rZWKOQvf3vLNOHs7M0rK0&e=>,
or unsubscribe
<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_BDWJVAVEXVVLTBXZSVAFM43ZLMFUVAVCNFSM6AAAAABJK54YJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJVGQ2DGNJUGU&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=PBqA4ZL9u_nR0seDcrIZyQ&m=jD7MW6QVBCylObwL7uJ-OLlTQ9GuCxvdd4erY6xUanbNq85KM7gOny688_LFHRhV&s=X9SADFXHLsDFp-Jr4UYt-IWwY67K1PmN4J7HUFxPrTs&e=>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Actually, I just spotted something above that surprised me; where and why did you import pycuda.autoinit? |
The pycuda.autoinit is imported in the main script:
Without the pycuda.autoinit, i get the cuInit failed: initialization error as such:
Just for reference, the entire piece of code is:
Thank you for your time Kaiwen Guo |
I'm not that familiar with fiola; I've heard of it but never used it. Can you start debugging by trying to run the notebooks included with caiman? Knowing if those work will help us figure out where the issue starts. |
Hi Pat, I tried debugging using the caiman notebooks, and different errors rises. The commands I followed are
I was able to pass all the tests in cpu mode.
and set use_cuda to true in demo_pipeline.py. The new error message I get is
My fix then is to get the newest skcuda package from their github repo, and I used
And when i run the demo_pipeline.py again, it says:
I also tried to install CUDA first, then use pip to install pycuda, but it gives me the same error. |
Hello, But I see that fiola uses pycuda. One thing to try is to use conda versions of all these packages when possible - try very hard to avoid using pip, and to use gpu/cuda-enabled versions of all the same packages. That will prevent version incompatibilities. |
My guess is this is depcreated. I'm a bit confused, what is your usecase? If you want to use FIOLA for online CNMF(E) it does not use scikit-cuda either. |
Hi Kushal, I am currently only trying to use GPU on CaImAn's motion correction part of demo_pipeline.py. The Im also at NYU btw :) Thanks, |
If you just want gpu motion correction I'd strongly recommend jnormcorre, it's under active development: https://github.com/apasarkar/jnormcorre The gpu accelerated motion correction in caiman is very old. |
Hi,
I am trying to use caiman to get a initialization file so that I can reuse it in the future. I am passing in a tif file generated from a sequence of avi file, and the error message that i get is that
I wonder if it is due to the way I construct the tif file. I made sure it is not colored, and here is the script i used to generate the tif file:
My script that calls caiman is:
and the demo_initialize_calcium.py corresponding to run_caiman_init:
Sorry for throwing out chunks of code. I am new to caiman, and any help would be really apprecaited!
Your setup:
The text was updated successfully, but these errors were encountered: