robbert-harms / MDT

Microstructure Diffusion Toolbox
GNU Lesser General Public License v3.0
50 stars 18 forks source link

Number of processed voxels #61

Open ghammad opened 4 months ago

ghammad commented 4 months ago

Dear Robbert,

Thanks again for making MDT available to the community.

I'd like to know if there is a way to specify the number of processed image voxels during the fitting procedure.

It seems that the default value (at least in my settings) is 200 000.

INFO:mdt.lib.processing.processing_strategies:Computations are at 0.00%, processing next 200000 voxels (443465 voxels in total, 0 processed). Time spent: 0:00:00:00, time left: ? (d:h:m:s).

Intended use case: in the current example, 3 batch computations are needed to process the image while setting the number of voxels to 250 000 per batch would reduce this number to 2. I think my GPU can afford the memory increase. I might also want to process all voxels in one batch, thus reducing the processing time accordingly.

MDT version: 1.2.7

robbert-harms commented 4 months ago

Hi Ghammad,

You could try to do that indeed! The way to set the number of processed voxels per batch is using a configuration file in your home directory. Check here for more information: https://mdt-toolbox.readthedocs.io/en/latest_release/configuration.html#advanced-configuration

Let me know if it worked out for you.

Best,

Robbert

ghammad commented 1 month ago

Hello @robbert-harms

Indeed, I should have had a closer look at the config file. It did work like a charm.

Thank you for your help.

Best,

Grégory