Skip to content

Commit

Permalink
updated consep & monusac configs
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaenzig committed Nov 8, 2024
1 parent 9e7cef3 commit 68f2211
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions configs/vision/pathology/online/segmentation/consep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ trainer:
class_path: eva.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}/consep}
max_steps: &MAX_STEPS ${oc.env:MAX_STEPS, 513}
default_root_dir: &OUTPUT_ROOT ${oc.env:OUTPUT_ROOT, logs/${oc.env:MODEL_NAME, vit_small_patch16_224_dino}/consep}
max_steps: &MAX_STEPS ${oc.env:MAX_STEPS, 2000}
log_every_n_steps: 6
callbacks:
- class_path: eva.callbacks.ConfigurationLogger
Expand All @@ -26,7 +26,7 @@ trainer:
- class_path: lightning.pytorch.callbacks.EarlyStopping
init_args:
min_delta: 0
patience: 100
patience: 34
monitor: *MONITOR_METRIC
mode: *MONITOR_METRIC_MODE
logger:
Expand All @@ -45,10 +45,10 @@ 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 5
num_classes: &NUM_CLASSES 5
criterion:
class_path: eva.vision.losses.DiceLoss
init_args:
Expand All @@ -58,7 +58,7 @@ model:
optimizer:
class_path: torch.optim.AdamW
init_args:
lr: ${oc.env:LR_VALUE, 0.002}
lr: ${oc.env:LR_VALUE, 0.0001}
lr_scheduler:
class_path: torch.optim.lr_scheduler.PolynomialLR
init_args:
Expand Down
14 changes: 7 additions & 7 deletions configs/vision/pathology/online/segmentation/monusac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ trainer:
class_path: eva.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}/monusac}
max_steps: &MAX_STEPS ${oc.env:MAX_STEPS, 550}
log_every_n_steps: 4
default_root_dir: &OUTPUT_ROOT ${oc.env:OUTPUT_ROOT, logs/${oc.env:MODEL_NAME, vit_small_patch16_224_dino}/monusac}
max_steps: &MAX_STEPS ${oc.env:MAX_STEPS, 2000}
log_every_n_steps: 6
callbacks:
- class_path: eva.callbacks.ConfigurationLogger
- class_path: lightning.pytorch.callbacks.TQDMProgressBar
Expand All @@ -26,7 +26,7 @@ trainer:
- class_path: lightning.pytorch.callbacks.EarlyStopping
init_args:
min_delta: 0
patience: 100
patience: 50
monitor: *MONITOR_METRIC
mode: *MONITOR_METRIC_MODE
logger:
Expand All @@ -45,10 +45,10 @@ 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 5
num_classes: &NUM_CLASSES 5
criterion:
class_path: eva.vision.losses.DiceLoss
init_args:
Expand All @@ -59,7 +59,7 @@ model:
optimizer:
class_path: torch.optim.AdamW
init_args:
lr: ${oc.env:LR_VALUE, 0.002}
lr: ${oc.env:LR_VALUE, 0.0001}
lr_scheduler:
class_path: torch.optim.lr_scheduler.PolynomialLR
init_args:
Expand Down

0 comments on commit 68f2211

Please sign in to comment.