Giter Site home page Giter Site logo

memory consumption and parameters about ants HOT 8 CLOSED

antsx avatar antsx commented on June 8, 2024
memory consumption and parameters

from ants.

Comments (8)

stnava avatar stnava commented on June 8, 2024

the major area where you will improve performance will be here:

,Random,0.05 => ,Regular, 0.25

you may also want a -x option, i.e. some kind of mask to focus the registration

another helpful thing is

-r [ fixed, moving , 1 ]

to initialize .... starter parameters are here:

https://github.com/stnava/ANTs/blob/master/Scripts/newAntsExample.sh

finally, you might try ANT

antsAffineInitializer

if need be ....

from ants.

satra avatar satra commented on June 8, 2024

for the -r flag is there expected to be an inverse transformation and also is that transform from the -r flag included in the composite? i'm trying to clean up the way nipype reads and collects these transforms.

from ants.

stnava avatar stnava commented on June 8, 2024

you should also add

 -z, --collapse-output-transforms (1)/0

so that regardless of the number of .mat type transforms, they are all
collapsed into one ... although i believe this is default behavior.

brian

On Tue, May 7, 2013 at 9:25 PM, Satrajit Ghosh [email protected]:

for the -r flag is there expected to be an inverse transformation and
also is that transform from the -r flag included in the composite? i'm
trying to clean up the way nipype reads and collects these transforms.

โ€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-17581361
.

from ants.

ntustison avatar ntustison commented on June 8, 2024

Yes, -z 1 is the default behavior.

Also, to answer Satra's questions --- "no" to the first and "yes" to the second.

from ants.

satra avatar satra commented on June 8, 2024

thanks guys.

running it now with the command below taken from the ANTSexample that brian pointed me to (here -z 0 is being used). should i change the nipype default to work with -z 1 (@hjmjohnson : what do you think?)

i'm presuming that -z 1 will not generate the various transform0/1/2... files

in this case, let's say i wanted to get the affine component of the composite - is there a way to extract/generate that from the composite?

appendix:
(in nipype we like to be verbose)

'/software/ANTS/versions/130123/antsRegistration --collapse-linear-transforms-to-fixed-image-header 0 --collapse-output-transforms 0 --dimensionality 3 --initial-moving-transform [ /gablab/p/CBMPARC/satra/human_2_anatomy.nii, /gablab/p/CBMPARC/satra/human_1_anatomy.nii, 1 ] --interpolation Linear --output [ transform, output_warped_image.nii.gz ] --transform Translation[ 0.1 ] --metric Mattes[ /gablab/p/CBMPARC/satra/human_2_anatomy.nii, /gablab/p/CBMPARC/satra/human_1_anatomy.nii, 1, 32 ,Regular,0.1 ] --convergence [ 10000x0x0, 1e-08, 20 ] --smoothing-sigmas 4x2x1vox --shrink-factors 6x4x2 --use-estimate-learning-rate-once 1 --use-histogram-matching 0 --transform Rigid[ 0.1 ] --metric Mattes[ /gablab/p/CBMPARC/satra/human_2_anatomy.nii, /gablab/p/CBMPARC/satra/human_1_anatomy.nii, 1, 32 ,Regular,0.1 ] --convergence [ 10000x0x0, 1e-08, 20 ] --smoothing-sigmas 4x2x1vox --shrink-factors 6x4x2 --use-estimate-learning-rate-once 1 --use-histogram-matching 0 --transform Affine[ 0.1 ] --metric Mattes[ /gablab/p/CBMPARC/satra/human_2_anatomy.nii, /gablab/p/CBMPARC/satra/human_1_anatomy.nii, 1, 32 ,Regular,0.1 ] --convergence [ 10000x0x0, 1e-08, 20 ] --smoothing-sigmas 4x2x1vox --shrink-factors 6x4x2 --use-estimate-learning-rate-once 1 --use-histogram-matching 0 --transform SyN[ 0.3, 3.0, 0.0 ] --metric Mattes[ /gablab/p/CBMPARC/satra/human_2_anatomy.nii, /gablab/p/CBMPARC/satra/human_1_anatomy.nii, 1, 32 ] --convergence [ 10x0x0, 1e-08, 20 ] --smoothing-sigmas 2x1x0vox --shrink-factors 4x2x1 --use-estimate-learning-rate-once 1 --use-histogram-matching 1 --winsorize-image-intensities [ 0.0, 1.0 ] --write-composite-transform 1'

from ants.

satra avatar satra commented on June 8, 2024

and this time it did not create transform0DerivedInitialMovingTranslation.mat. is there a reason why it would create it once but not again?

from ants.

ntustison avatar ntustison commented on June 8, 2024

The -z 1 option collapses all linear transforms together into a single affine transform file.

from ants.

satra avatar satra commented on June 8, 2024

i'm closing this for now - the memory consumption might still be an issue - given that brian's starter parameters aren't meant to be really used. will reopen if this problem persists.

from ants.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.