Closed Schwarao closed 7 months ago
SyN requires significantly more memory, which can lead to the process being killed if there is not enough available
SyN 需要更多的内存,如果没有足够的可用内存,这可能会导致进程被终止
My memory is sufficient, and it can be successfully run by calling the script file locally on my computer. Why can't it be done in docker?
Is there any master who has the experience to tell me, this is very urgent.
I'm using antsx/ants images
Or can anyone tell me about antsx/ants and antsx/antspy in dockerhub: latest How do I use the containers created by these two images?
If you're using docker desktop, there is a memory limit
It shouldn't be a problem of insufficient memory, could it be that there is a problem with my shell script configuration? I still have 18GB of RAM available on my computer when I'm not running programs
I don't recognize these graphs, but the top right one appears to show 11.68 Gb of memory available.
That's right, so why is the program being killed?
the docker container does not have enough memory. that's different than the machine on which the container is being run.
ok,i will Use it on a different computer
Thanks to both of you, I now put it on the linux host to run docker but I found that linux will use more memory, for example: windows only needs more than 10 G, while linux needs more than 100 G, why is this?
What are the dimensions of the images?
moving:
fixed:
So 400x274x460 and 456x320x528. Those are big images, and the registration needs to store those plus the associated transforms. Simplest solution to reduce footprint would be to run with --float 1
.
ok,i will try it ,thank you very much.
probably worth trying to blur + downsample
Below is the script file I run in the container: Here, if I replace the -t parameter with SyN, an error will be reported. Why? It is still useful when -t is affine
The error is reported as follows: /usr/local/bin/script.sh: line 16: 20 Killed $reg -d 3 -v 1 --use-histogram-matching 0 --winsorize-image-intensities [0.005, 0.995] -n NearestNeighbor -m MI[/usr/dataaccess/fixed_mask1_25.nii.gz,/usr/dataaccess/linear_mask1_25.nii.gz,1,32] -t SyN[.20,3,0] -c [1000x1000x500x100x0,1.e-6,10] -s 4x3x2x1x0vox -f 32x16x8x4x1 --float 0 -o [${out},${out}_diff.nii.gz,${out}_inv.nii.gz]