Closed valosekj closed 1 year ago
With the latest version of the augmentation script, this is no longer the case mainly because the resampling is now done at the beginning.
However, these commands copied from above are still useful when debugging.
python convert_bids_to_nnUNetv2.py --path-data ~/extrassd1/janvalosek/data/sci-zurich --path-out ~/extrassd1/janvalosek/data/sci-zurich-nnunet --dataset-name tSCILesionsZurichDummy --dataset-number 525 --split 0.6 0.2 0.2 --seed 99 --include-masks_folders --create-dummy-dataset
python convert_bids_to_nnUNetv2_spine-generic.py --path-data ~/extrassd1/janvalosek/data/data-multi-subject --path-out ~/extrassd1/janvalosek/data/data-multi-subject-nnunet --dataset-name SpineGenericMutliSubject --dataset-number 526 --seed 99
Closing this issue now.
In the current version of generate_new_lesion.py, the lesion volume can be zero after resampling.
See the last 4 lines of the following terminal output:
Related TODOs:
https://github.com/ivadomed/model_seg_sci/blob/acaed534a6b11b0b2f1319ca6c3942027f6a748b/generate_new_lesions/generate_new_lesion.py#L269-L270
https://github.com/ivadomed/model_seg_sci/blob/acaed534a6b11b0b2f1319ca6c3942027f6a748b/generate_new_lesions/generate_new_lesion.py#L289
https://github.com/ivadomed/model_seg_sci/blob/acaed534a6b11b0b2f1319ca6c3942027f6a748b/generate_new_lesions/generate_new_lesion.py#L315
The command I use:
The following commands were used to generate the datasets (see scripts in dataset-conversion):
Note: path to the QC is now hardcoded (which is not ideal):
https://github.com/ivadomed/model_seg_sci/blob/b8382f87c1264391570097bb22dc9f52093dc7c3/generate_new_lesions/generate_new_lesion.py#L347