Skip to content
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

allocate error #917

Closed
fiona3668 opened this issue Nov 20, 2019 · 5 comments
Closed

allocate error #917

fiona3668 opened this issue Nov 20, 2019 · 5 comments

Comments

@fiona3668
Copy link

memory allocate error
when using antsRegistrationSyNQuick.sh, I found there is a error. It says "Failed to allocate memory for image"

Does it means I run out of RAM? How much I need for this?

  • antsRegistrationSyNQuick.sh -d 3 -f ~/0502_VENOUS.nii -m ~/0500_PRECON.nii -o output

  • Exception caught:
    itk::MemoryAllocationError (0x7f3a20000940)
    Location: "unknown"
    File: /home/fiona/bin/antsBuild/staging/include/ITK-5.1/itkImportImageContainer.hxx
    Line: 192
    Description: Failed to allocate memory for image.

  • Ubtuntu 16.4

  • Type of system: laptop

@cookpa
Copy link
Member

cookpa commented Nov 20, 2019

It depends on the images. What size are they?

@fiona3668
Copy link
Author

they are 512 512 80(80mb),and my pc is 8G.

@cookpa
Copy link
Member

cookpa commented Nov 20, 2019

By default the scripts use double precision (see usage to change to single), so that's 160 Mb, and you'll need several multiples of this for both the images, and all the warp fields.

You can try

free -m

to see how much RAM is available. The total installed on the machine is an upper limit, but it doesn't mean ANTs can allocate all of that, or even most of it.

@gdevenyi
Copy link
Contributor

512x512x80 is large, and you get a x3 if you're doing a SyN registration. 8GB is definitely not enough.

@fiona3668
Copy link
Author

ok thank you guys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants