nnUNet icon indicating copy to clipboard operation
nnUNet copied to clipboard

Model sharing

Open akvilonBrown opened this issue 10 months ago • 1 comments

Hi, Simply stupid question, for which I failed to find the straight answer in the documentation: How to share a trained nnUnet model? Just sharing the content of nnUNet_results with the respective Dataset subfolder? Is it enough that files from preprocessing are not required? Is it the same for nnUnet_v1 ($RESULTS_FOLDER/nnUNet/[3d_fullres + ensembles]/TaskXXX)? Lastly, is there a way to reduce the size of that shared folder? In my case, it is much larger than the size of the training dataset, so it is more reasonable to share the data instead of trained models, but I would like not to disclose the data.

akvilonBrown avatar Apr 03 '24 15:04 akvilonBrown

I see it's not a trivial task. I will keep some related topics here for history. https://github.com/MIC-DKFZ/nnUNet/issues/2100 https://github.com/MIC-DKFZ/nnUNet/issues/2088

akvilonBrown avatar Apr 29 '24 10:04 akvilonBrown

Hi @akvilonBrown, by sharing the content of your respective nnUNet_results folder for a specific dataset other people can use your models when they are saved in their respective nnUNet_results folders.

However, the versions of nnU-Net used for training and used during inference need to be compatible.

Also, you do not need the nnUNet_preprocessed for this.

Best regards

sten2lu avatar May 18 '24 17:05 sten2lu

Yes, thank you. I finally figured it out with trial and error. The validation data in the results folders confused me. Also, checkpoints are stored twice (best/final). All that bloated the space. When removed, it became exportable.

akvilonBrown avatar May 19 '24 14:05 akvilonBrown