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

Custom nnunet trainer #296

Merged
merged 4 commits into from
Nov 25, 2024
Merged

Custom nnunet trainer #296

merged 4 commits into from
Nov 25, 2024

Conversation

jewelltaylor
Copy link
Collaborator

PR Type

[Feature | Fix | Documentation | Other ]

Short Description

Small PR to add the ability to specify a custom nnunet trainer class.

Copy link
Collaborator

@emersodb emersodb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just two very minor comments.

@@ -141,6 +143,10 @@ def __init__(
provided. Defaults to None.
reporters (Sequence[BaseReporter], optional): A sequence of FL4Health
reporters which the client should send data to.
nnunet_trainer_class (Type[nnUNetTrainer]): A nnUNetTrainer constructor.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a quick note here and on the server-side that the training classes have to match each other (client and server trainers should be the same)?

@@ -34,6 +34,7 @@ scikit-learn = "1.5.0" # Pin as it was causing issues with nnunet
# Problematic grpcio versions cause issues, should be fixed in next flwr update
# See https://github.com/adap/flower/pull/3853
# https://github.com/grpc/grpc/issues/37162
tornado = ">=6.4.2"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, why did this need upgrading?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pip audit flags 6.4.1 so had to upgrade to 6.4.2 or higher

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good!

@jewelltaylor jewelltaylor merged commit d73bae0 into main Nov 25, 2024
6 checks passed
@jewelltaylor jewelltaylor deleted the custom-nnunet-trainer branch November 25, 2024 15:27
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.

2 participants