Skip to content

Generating HDF5 is too slow + conforming the images. #67

@isukrit

Description

@isukrit

Hi team, I have been using FastSurfer for a while now and recently decided to use it to train on my own dataset. I have a couple of quick suggestions for the team when it comes to the FastSurfer/FastSurferCNN/generate_hdf5.py file:

  1. This sometimes fails because the base image/segmentation is not conformed to the 256256256 space and the 1mm^3 resolution. Wouldn't it be better to conform the input image and segmentation using the load_and_conform_image function from the data_loader/load_neuroimaging_data file? I also played around a bit (changed the code) and generated HDF5 files for other resolutions, but the training fails in that case because of an error with the downsampled sizes.
  2. This is simply too slow. I am trying out the HCP data and it's taking hours upon hours to get the HDF5 files. Do you want to use multiprocessing library and simply parallelize the for loop? I have done the parallelization with map.pool and it works much faster now!

I have attached the file for your reference, please.

Cheers,
Sukrit

PS: Hoping to see the team at DZNE some time next summer! @m-reuter
generate_hdf5.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions