Skip to content

Post-processing not included in run_inference.py  #23

@plbenveniste

Description

@plbenveniste

After running nnUNetv2_find_best_configuration, I get these instructions :

inference_instructions.txt
***Run inference like this:***

nnUNetv2_predict -d Dataset444_zurich_mouse -i INPUT_FOLDER -o OUTPUT_FOLDER -f  0 1 2 3 4 -tr nnUNetTrainer -c 3d_fullres -p nnUNetPlans

***Once inference is completed, run postprocessing like this:***

nnUNetv2_apply_postprocessing -i OUTPUT_FOLDER -o OUTPUT_FOLDER_PP -pp_pkl_file ./nnUNet_results/Dataset444_zurich_mouse/nnUNetTrainer__nnUNetPlans__3d_fullres/crossval_results_folds_0_1_2_3_4/postprocessing.pkl -np 8 -plans_json ./nnUNet_results/Dataset444_zurich_mouse/nnUNetTrainer__nnUNetPlans__3d_fullres/crossval_results_folds_0_1_2_3_4/plans.json

The current run_inference.pydoesn't perform post-processing. Should we add it ? Is there someone working on this ? (@naga-karthik @valosekj )

Also, I tried running the code on my computer: it took : 1277.31 seconds.
Image is 80 MB (200x200x500) ; (0.05, 0.05, 0.05)
The reason for the length are: I am using 5 folds (so x5 as long) and running on cpu.

I will try to run it after keeping only 1 fold.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions