nndet_prepare_data_folder script#
Prepare Dataset folder according to the nnDetection specifications, creating and populating the subfolders imagesTr,
labelsTr, imagesTs and labelsTs. In addition, a JSON instance configuration file (as required by nnDetection)
for each label mask is generated, alongside a summary of the train/test split of the dataset.
The label mask images are expected to be as instance segmentation masks (NOT semantic segmentation representations).
usage: nndet_prepare_data_folder [-h] -i INPUT_DATA_FOLDER [--task-ID TASK_ID]
--task-name TASK_NAME [--test-split [0-100]]
--config-file CONFIG_FILE [-v | -q]
Named Arguments#
- -i, --input-data-folder
Input Dataset folder
- --task-ID
Task ID used in the folder path tree creation (Default: 100)
Default: “100”
- --task-name
Task Name used in the folder path tree creation.
- --test-split
Possible choices: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100
Split value ( in % ) to create Test set from Dataset (Default: 20)
Default: 20
- --config-file
Configuration JSON file with experiment and dataset parameters.
- -v, --verbose
Enable verbose output in terminal. Add multiple times to increase verbosity.
- -q, --silent
Suppress most log outputs in terminal.
Example call:
nndet_prepare_data_folder -i /PATH/TO/DATA_FOLDER --task-ID 000 --task-name Example --config-file Example_config.json
nndet_prepare_data_folder -i /PATH/TO/DATA_FOLDER --task-ID 000 --task-name Example --config-file Example_config.json --test-split 30