-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sortir les étapes de validation du MapsManager (#657)
* first try to create a validator * test to integrate validator config
- Loading branch information
1 parent
17ef236
commit 8a1589e
Showing
7 changed files
with
614 additions
and
472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from clinicadl.caps_dataset.caps_dataset_config import CapsDatasetConfig | ||
from clinicadl.prepare_data.prepare_data import DeepLearningPrepareData | ||
from clinicadl.trainer.config.classification import ClassificationConfig | ||
from clinicadl.trainer.trainer import Trainer | ||
from clinicadl.utils.enum import ExtractionMethod, Preprocessing, Task | ||
from clinicadl.utils.iotools.train_utils import merge_cli_and_config_file_options | ||
|
||
image_config = CapsDatasetConfig.from_preprocessing_and_extraction_method( | ||
extraction=ExtractionMethod.IMAGE, | ||
preprocessing_type=Preprocessing.T1_LINEAR, | ||
) | ||
|
||
DeepLearningPrepareData(image_config) | ||
|
||
config = ClassificationConfig() | ||
trainer = Trainer(config) | ||
trainer.train(split_list=config.cross_validation.split, overwrite=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.