Open AbeeChang opened 2 years ago
Hello, how much memory does it take to run this code? I was running with matlab and showed that ’out of memory‘
Hello, how much memory does it take to run this code? I was running with matlab and showed that ’out of memory‘
I am going to assume you are referring to the tutorial, tusx_sim_setup_tutorial.m
.
Memory usage with TUSX depends on the size of the volume provided and the parameters requested. In general, higher scale
values significantly increase memory requirements. Certain processing steps also take significantly more memory than others. One step, set by the name-value parameter reorientToGrid
significantly increases memory requirements, but the step also significantly improves results for trajectories not orthogonal to the MRI/CT volume's grid. But in cases where your trajectory is orthogonal to the grid (i.e. scalpLocation
and ctxTarget
parameters differ by only one element), there is no need to run the reorientToGrid
step.
So to run the tutorial tusx_sim_setup_tutorial.m
with three different parameter choices, I measured the following memory (RAM) requirements to run Lines 1-101:
reorientToGrid = true; initialSmooth = true; 32 GB
reorientToGrid = false; initialSmooth = true; 14 GB
reorientToGrid = false; initialSmooth = false; 13 GB
(Test memory: DDR4 SDRAM)
So if you just want to test out the tutorial, feel free to set reorientToGrid
to false. However, I strongly suggest you keep reorientToGrid
to true for any real experiments.
Dear Sir I am a student from Taiwan. Because my research is about ultrasound transcranial therapy.
I have a few questions I want to ask:
Thank you very much
Chang