Skip to content

Commit

Permalink
updated configs
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaenzig committed Nov 15, 2024
1 parent 19347f2 commit 5325a36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 5325a36

Please sign in to comment.