Add multi-channel conversion transforms for brats23 #8112
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi team!
I added some new transforms to convert from BraTS2023 labels to multi-channel - both when performing region-based and label-based training. I thought it could be useful because right now the only one existing in monai.transforms (
ConvertToMultiChannelBasedOnBratsClasses
) is based on BraTS2018 labels, which have changed over the past editions. If you find this useful I could also try to implement them for BraTS2024, although here we have more heterogenity across the different tasks.New classes:
ConvertToMultiChannelBasedOnBrats23Classes
: returns labels -> regions -> multi-channel tensors. Simulates the previous mentioned class (ConvertToMultiChannelBasedOnBratsClasses)ConvertToMultiChannelBasedOnBrats23ClassesNoReg
: returns labels -> multi-channel tensorsI've quickly tested the changes by running it in some experiments I'm working on, but I haven't run any integration tests yet. Please let me know if this is helpful. I'm happy to assist further with the implementation or help finalize the pull request.
Types of changes
./runtests.sh -f -u --net --coverage
../runtests.sh --quick --unittests --disttests
.make html
command in thedocs/
folder.