Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port towards config file-based training #90

Merged
merged 67 commits into from
Mar 7, 2024

Conversation

naga-karthik
Copy link
Collaborator

This PR heavily improves the way we train the contrast-agnostic model. Earlier, a lot of important arguments were passed through the command line, making the arguments list ever increasing and messy. With this PR, all the important params (and hyperparams) are specified in .yaml file that could be used for training. This could help other segmentation projects looking to use monai-based models to improve upon or replace nnUNet model.

Usage is now as simple as:

python monai/main.py --model nnunet --config configs/train_soft_all.yaml

This improved training strategy is mainly motivated by #87 - a follow-up project looking at the model drift (using lifelong learning) when training the contrast-agnostic model by adding more datasets. This also makes the training easier for a foundational model for SC segmentation that we were discussing with @valosekj .

@naga-karthik naga-karthik merged commit 59e6229 into main Mar 7, 2024
@naga-karthik naga-karthik deleted the nk/improve-training-procedure branch March 7, 2024 15:43
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.

4 participants