Skip to content

Commit

Permalink
Fix init call of NoDeepSupervision trainer
Browse files Browse the repository at this point in the history
  • Loading branch information
TaWald committed Oct 11, 2023
1 parent c7ae896 commit ea985cf
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
from nnunetv2.training.nnUNetTrainer.nnUNetTrainer import nnUNetTrainer
import torch


class nnUNetTrainerNoDeepSupervision(nnUNetTrainer):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def __init__(
self,
plans: dict,
configuration: str,
fold: int,
dataset_json: dict,
unpack_dataset: bool = True,
device: torch.device = torch.device("cuda"),
):
super().__init__(plans, configuration, fold, dataset_json, unpack_dataset, device)
self.enable_deep_supervision = False

0 comments on commit ea985cf

Please sign in to comment.