From 5325a36d93eb4ec1c3fa0c446b62b01fbb7aebba Mon Sep 17 00:00:00 2001 From: Nicolas Kaenzig Date: Fri, 15 Nov 2024 10:51:15 +0000 Subject: [PATCH] updated configs --- .../offline/segmentation/total_segmentator_2d.yaml | 5 +++-- .../online/segmentation/total_segmentator_2d.yaml | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/configs/vision/pathology/offline/segmentation/total_segmentator_2d.yaml b/configs/vision/pathology/offline/segmentation/total_segmentator_2d.yaml index 38080f1a..250f18d6 100644 --- a/configs/vision/pathology/offline/segmentation/total_segmentator_2d.yaml +++ b/configs/vision/pathology/offline/segmentation/total_segmentator_2d.yaml @@ -4,7 +4,7 @@ trainer: init_args: n_runs: &N_RUNS ${oc.env:N_RUNS, 1} default_root_dir: &OUTPUT_ROOT ${oc.env:OUTPUT_ROOT, logs/${oc.env:MODEL_NAME, vit_small_patch16_224_dino}/total_segmentator_2d} - max_steps: &MAX_STEPS ${oc.env:MAX_STEPS, 20000} + max_steps: &MAX_STEPS ${oc.env:MAX_STEPS, 40000} callbacks: - class_path: eva.callbacks.ConfigurationLogger - class_path: lightning.pytorch.callbacks.TQDMProgressBar @@ -54,7 +54,7 @@ model: class_path: eva.vision.models.networks.decoders.segmentation.ConvDecoderMS init_args: in_features: ${oc.env:IN_FEATURES, 384} - num_classes: &NUM_CLASSES 118 + num_classes: &NUM_CLASSES 37 criterion: class_path: eva.vision.losses.DiceLoss init_args: @@ -142,6 +142,7 @@ data: val: batch_size: *BATCH_SIZE num_workers: *N_DATA_WORKERS + shuffle: true test: batch_size: *BATCH_SIZE num_workers: *N_DATA_WORKERS diff --git a/configs/vision/pathology/online/segmentation/total_segmentator_2d.yaml b/configs/vision/pathology/online/segmentation/total_segmentator_2d.yaml index 209bf262..8f584f50 100644 --- a/configs/vision/pathology/online/segmentation/total_segmentator_2d.yaml +++ b/configs/vision/pathology/online/segmentation/total_segmentator_2d.yaml @@ -4,7 +4,7 @@ trainer: init_args: n_runs: &N_RUNS ${oc.env:N_RUNS, 1} default_root_dir: &OUTPUT_ROOT ${oc.env:OUTPUT_ROOT, logs/${oc.env:MODEL_NAME, vit_small_patch16_224_dino}/total_segmentator_2d} - max_steps: &MAX_STEPS ${oc.env:MAX_STEPS, 200000} + max_steps: &MAX_STEPS ${oc.env:MAX_STEPS, 40000} callbacks: - class_path: eva.callbacks.ConfigurationLogger - class_path: lightning.pytorch.callbacks.TQDMProgressBar @@ -25,7 +25,7 @@ trainer: - class_path: lightning.pytorch.callbacks.EarlyStopping init_args: min_delta: 0 - patience: 10 + patience: 5 monitor: *MONITOR_METRIC mode: *MONITOR_METRIC_MODE logger: @@ -44,7 +44,7 @@ model: out_indices: ${oc.env:OUT_INDICES, 1} model_extra_kwargs: ${oc.env:MODEL_EXTRA_KWARGS, null} decoder: - class_path: eva.vision.models.networks.decoders.segmentation.ConvDecoderMS + class_path: eva.vision.models.networks.decoders.segmentation.ConvDecoderWithImage init_args: in_features: ${oc.env:IN_FEATURES, 384} num_classes: &NUM_CLASSES 37 @@ -120,6 +120,7 @@ data: val: batch_size: *BATCH_SIZE num_workers: *N_DATA_WORKERS + shuffle: true test: batch_size: *BATCH_SIZE num_workers: *N_DATA_WORKERS