Skip to content

Commit

Permalink
remove split list
Browse files Browse the repository at this point in the history
  • Loading branch information
camillebrianceau committed Oct 14, 2024
1 parent feff9ec commit 0f069af
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions clinicadl/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def train(

else:
splitter_config = SplitterConfig(**self.config.get_dict())
split_manager = Splitter(splitter_config, split_list=split_list)
split_manager = Splitter(splitter_config)

for split in split_manager.split_iterator():
logger.info(f"Training split {split}")
Expand All @@ -244,7 +244,7 @@ def train(
def check_split_list(self, split_list, overwrite):
existing_splits = []
splitter_config = SplitterConfig(**self.config.get_dict())
split_manager = Splitter(splitter_config, split_list=split_list)
split_manager = Splitter(splitter_config)
for split in split_manager.split_iterator():
split_path = self.maps_manager.maps_path / f"split-{split}"
if split_path.is_dir():
Expand Down Expand Up @@ -281,7 +281,7 @@ def _resume(
"""
missing_splits = []
splitter_config = SplitterConfig(**self.config.get_dict())
split_manager = Splitter(splitter_config, split_list=split_list)
split_manager = Splitter(splitter_config)
for split in split_manager.split_iterator():
if not (self.maps_manager.maps_path / f"split-{split}" / "tmp").is_dir():
missing_splits.append(split)
Expand Down Expand Up @@ -473,8 +473,8 @@ def _train_ssda(

splitter_config = SplitterConfig(**self.config.get_dict())

split_manager = Splitter(splitter_config, split_list=split_list)
split_manager_target_lab = Splitter(splitter_config, split_list=split_list)
split_manager = Splitter(splitter_config)
split_manager_target_lab = Splitter(splitter_config)

for split in split_manager.split_iterator():
logger.info(f"Training split {split}")
Expand Down

0 comments on commit 0f069af

Please sign in to comment.