Skip to content

Multichannel Model Support for Pre-Aligned Volumes#1896

Draft
CavRiley wants to merge 5 commits intoProject-MONAI:mainfrom
CavRiley:multiChannelSupport
Draft

Multichannel Model Support for Pre-Aligned Volumes#1896
CavRiley wants to merge 5 commits intoProject-MONAI:mainfrom
CavRiley:multiChannelSupport

Conversation

@CavRiley
Copy link

@CavRiley CavRiley commented Mar 4, 2026

Overview

Adds ability for training multichannel segmentation models on pre-aligned/co-registered volumes using the local datastore. I was working based off this issue #241

I added a working implementation for the BraTS 2020 dataset with individual volumes as a reference use case.

Changes

  • Added optional --input_channels argument to support multichannel model configurations
  • Added optional --multi_file argument to handle multi-file volume inputs (each sample has a directory with multiple volumes)
  • Added optional --multichannel argument to handle multichannel inputs (example sample has a single image with multiple volumes)

Results (BraTS 2020 — 150 epochs)

Split Mean Dice Tumor Core Whole Tumor Enhancing Tumor
Train 0.875 0.883 0.914 0.830
Val 0.858 0.872 0.890 0.826

Notes

  • Tested on BraTS 2020 with 4-channel input (T1, T1ce, T2, FLAIR)
  • Volumes must be pre-aligned/co-registered before use

I'd be happy to incorporate any feedback from maintainers so this could be added

CavRiley and others added 5 commits March 4, 2026 09:46
Adds flags to the local datastore init signaling the data is either multichannel or multi-file (each directory has a sample with multiple volumes

Signed-off-by: Cavan Riley <cavan-riley@uiowa.edu>
Adds ability to load multiple volumes per sample or load sequence data depending on request

Signed-off-by: Cavan Riley <cavan-riley@uiowa.edu>
BraTS sample application addition using BraTS 2020 multi-volume data

Signed-off-by: Cavan Riley <cavan-riley@uiowa.edu>
Signed-off-by: Cavan Riley <cavan-riley@uiowa.edu>
@coderabbitai
Copy link

coderabbitai bot commented Mar 4, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 3e7373e9-e029-479f-9e79-fc7b5044691a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant