Skip to content

Commit

Permalink
Merge branch 'main' into clean-up-dice
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaenzig authored Dec 6, 2024
2 parents ec12e40 + f5b0053 commit e556abc
Show file tree
Hide file tree
Showing 17 changed files with 2,106 additions and 1,506 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
Loading

0 comments on commit e556abc

Please sign in to comment.