MIC-DKFZ / nnUNet

Apache License 2.0
5.95k stars 1.77k forks source link

Add no_resampling function + remove unnecessary imports #2547

Open fitzjalen opened 1 month ago

fitzjalen commented 1 month ago

Sometimes resampling is unnecessary (for example, in an ensemble custom predictor where all models are trained with the same spacing and there's a custom initial resampler). In such cases, it's useful to set no_resampling_data_or_seg_to_shape to avoid dealing with resampling altogether. Additionally, I noticed several unused imports and comments, which I removed to keep the code clean and well-organized.