Skip to content

Fix LR scheduler deprecated args and improve Dataloader construction - #134

Merged
C-Achard merged 2 commits into
mainfrom
cy/fix-lr-scheduler
Nov 25, 2026
Merged

C-Achard merged 2 commits into
mainfrom
cy/fix-lr-scheduler

Conversation

@C-Achard

Copy link
Copy Markdown
Collaborator

Fixes supervised training crashing on recent PyTorch, and simplifies DataLoader construction in the training workers.

Fix: deprecated verbose argument on ReduceLROnPlateau

  • SupervisedTrainingWorker passed verbose=VERBOSE_SCHEDULER to torch.optim.lr_scheduler.ReduceLROnPlateau. which is deprecated. This PR removes the argument and the unused VERBOSE_SCHEDULER constant.
  • Adds TrainingWorkerBase._make_dataloader, which replaces four near-duplicate DataLoader(...) blocks in WNetTrainingWorker and SupervisedTrainingWorker.

@C-Achard C-Achard added bug Something isn't working ML Related to machine learning : MONAI, Torch... labels Nov 20, 2026
@C-Achard C-Achard self-assigned this Nov 20, 2026
@C-Achard
C-Achard added this pull request to stack #138 November 20, 2026 09:04
@C-Achard C-Achard added this to the v0.2.5 milestone Nov 25, 2026
@C-Achard
C-Achard force-pushed the cy/fix-lr-scheduler branch from 8cf93d7 to 9d16e1e Compare November 25, 2026 09:58
@C-Achard
C-Achard merged commit ea50999 into main Nov 25, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ML Related to machine learning : MONAI, Torch...

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant