Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New log folder structure #91

Merged
merged 6 commits into from
Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions configs/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ defaults:
- experiment: development_baby_unet_cb55_10.yaml
- hparams_search: null

- hydra: default.yaml

# enable color logging
- override hydra/job_logging: colorlog
- override hydra/hydra_logging: colorlog
Expand Down
6 changes: 5 additions & 1 deletion configs/experiment/cb55_full_run_unet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# python run.py +experiment=exp_example_full

defaults:
- /mode: experiment.yaml
- /plugins: default.yaml
- /task: semantic_segmentation_HisDB_cropped.yaml
- /loss: crossentropyloss.yaml
Expand All @@ -23,6 +24,8 @@ defaults:
# instead we define all modules and their paths directly in this config,
# so everything is stored in one place for more readibility

name: "semantic_segmentation_cb55_full_unet"

train: True
test: True
predict: False
Expand All @@ -34,6 +37,7 @@ trainer:
min_epochs: 1
max_epochs: 50
precision: 16
check_val_every_n_epoch: 4

task:
confusion_matrix_log_every_n_epoch: 10
Expand Down Expand Up @@ -62,6 +66,6 @@ callbacks:

logger:
wandb:
name: 'cb55-full-unet'
name: ${name}
tags: ["best_model", "USL", "baseline"]
group: 'baseline'
71 changes: 71 additions & 0 deletions configs/experiment/cb55_full_run_unet_loss_no_weights.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# @package _global_

# to execute this experiment run:
# python run.py +experiment=exp_example_full

defaults:
- /mode: experiment.yaml
- /plugins: default.yaml
- /task: semantic_segmentation_HisDB_cropped.yaml
- /loss: crossentropyloss_no_weight.yaml
- /metric: hisdbiou.yaml
- /model/backbone: unet_model.yaml
- /model/header: identity.yaml
- /optimizer: adam.yaml
- /callbacks:
- check_compatibility.yaml
- model_checkpoint.yaml
- /logger:
- wandb.yaml # set logger here or use command line (e.g. `python run.py logger=wandb`)
- csv.yaml
- _self_

# we override default configurations with nulls to prevent them from loading at all
# instead we define all modules and their paths directly in this config,
# so everything is stored in one place for more readibility

name: "semantic_segmentation_cb55_full_unet_loss_no_weights"

train: True
test: True
predict: False

trainer:
_target_: pytorch_lightning.Trainer
gpus: -1
accelerator: 'ddp'
min_epochs: 1
max_epochs: 50
precision: 16
check_val_every_n_epoch: 4

task:
confusion_matrix_log_every_n_epoch: 10
confusion_matrix_val: True
confusion_matrix_test: True

datamodule:
_target_: src.datamodules.DivaHisDB.datamodule_cropped.DivaHisDBDataModuleCropped

data_dir: /net/research-hisdoc/datasets/semantic_segmentation/datasets_cropped/CB55
crop_size: 256
num_workers: 4
batch_size: 16
shuffle: True
drop_last: True
data_folder_name: data
gt_folder_name: gt

callbacks:
model_checkpoint:
monitor: "val/hisdbiou"
mode: "max"
filename: ${checkpoint_folder_name}cb55-full-unet
# watch_model:
# log_freq: 1000

logger:
wandb:
name: ${name}
tags: ["best_model", "USL", "baseline"]
group: 'baseline'
5 changes: 4 additions & 1 deletion configs/experiment/cb55_select_train15_unet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# python run.py +experiment=exp_example_full

defaults:
- /mode: experiment.yaml
- /plugins: default.yaml
- /task: semantic_segmentation_HisDB_cropped.yaml
- /loss: crossentropyloss.yaml
Expand All @@ -23,6 +24,8 @@ defaults:
# instead we define all modules and their paths directly in this config,
# so everything is stored in one place for more readibility

name: "semantic_segmentation_cb55_train15_unet"

train: True
test: True
predict: False
Expand Down Expand Up @@ -63,6 +66,6 @@ callbacks:

logger:
wandb:
name: 'cb55-select-train15-unet'
name: ${name}
tags: ["best_model", "USL", "baseline"]
group: 'baseline'
5 changes: 4 additions & 1 deletion configs/experiment/cb55_select_train1_val1_unet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# python run.py +experiment=exp_example_full

defaults:
- /mode: experiment.yaml
- /plugins: default.yaml
- /task: semantic_segmentation_HisDB_cropped.yaml
- /loss: crossentropyloss.yaml
Expand All @@ -23,6 +24,8 @@ defaults:
# instead we define all modules and their paths directly in this config,
# so everything is stored in one place for more readibility

name: "semantic_segmentation_cb55_train1_val1_unet"

train: True
test: True
predict: False
Expand Down Expand Up @@ -64,6 +67,6 @@ callbacks:

logger:
wandb:
name: 'cb55-select-train1-val1-unet'
name: ${name}
tags: ["best_model", "USL", "baseline"]
group: 'baseline'
1 change: 1 addition & 0 deletions configs/experiment/dev_rgb_full_page.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# python run.py +experiment=exp_example_full

defaults:
- /mode: development.yaml
- /plugins: default.yaml
- /task: semantic_segmentation_RGB.yaml
- /loss: crossentropyloss.yaml
Expand Down
1 change: 1 addition & 0 deletions configs/experiment/dev_rgb_full_page_predict.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# python run.py +experiment=exp_example_full

defaults:
- /mode: development.yaml
- /plugins: default.yaml
- /task: semantic_segmentation_RGB.yaml
- /loss: crossentropyloss.yaml
Expand Down
1 change: 1 addition & 0 deletions configs/experiment/dev_rolf_format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# python run.py +experiment=exp_example_full

defaults:
- /mode: development.yaml
- /plugins: default.yaml
- /task: semantic_segmentation_RGB.yaml
- /datamodule: rolf_format_dev.yaml
Expand Down
1 change: 1 addition & 0 deletions configs/experiment/dev_rolf_format_prediction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# python run.py +experiment=exp_example_full

defaults:
- /mode: development.yaml
- /plugins: default.yaml
- /task: semantic_segmentation_RGB.yaml
- /datamodule: rolf_format_dev_prediction.yaml
Expand Down
1 change: 1 addition & 0 deletions configs/experiment/dev_rotnet_cnn_basic_cb55_10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# python run.py +experiment=exp_example_full

defaults:
- /mode: development.yaml
- /plugins: default.yaml
- /task: classification.yaml
- /loss: crossentropyloss.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# python run.py +experiment=exp_example_full

defaults:
- /mode: development.yaml
- /plugins: default.yaml
- /task: semantic_segmentation_HisDB_cropped.yaml
- /loss: crossentropyloss.yaml
Expand Down
1 change: 1 addition & 0 deletions configs/experiment/dev_rotnet_resnet18_cb55_10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# python run.py +experiment=exp_example_full

defaults:
- /mode: development.yaml
- /plugins: default.yaml
- /task: classification.yaml
- /loss: crossentropyloss.yaml
Expand Down
1 change: 1 addition & 0 deletions configs/experiment/dev_rotnet_resnet50_cb55_10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# python run.py +experiment=exp_example_full

defaults:
- /mode: development.yaml
- /plugins: default.yaml
- /task: classification.yaml
- /loss: crossentropyloss.yaml
Expand Down
1 change: 1 addition & 0 deletions configs/experiment/development_baby_unet_cb55_10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# python run.py +experiment=exp_example_full

defaults:
- /mode: development.yaml
- /plugins: default.yaml
- /task: semantic_segmentation_HisDB_cropped.yaml
- /loss: crossentropyloss.yaml
Expand Down
1 change: 1 addition & 0 deletions configs/experiment/development_baby_unet_rgb_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# python run.py +experiment=exp_example_full

defaults:
- /mode: development.yaml
- /plugins: default.yaml
- /task: semantic_segmentation_RGB_cropped.yaml
- /loss: crossentropyloss.yaml
Expand Down
5 changes: 4 additions & 1 deletion configs/experiment/rotnet_resnet18_cb55_full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# python run.py +experiment=exp_example_full

defaults:
- /mode: experiment.yaml
- /plugins: default.yaml
- /task: classification.yaml
- /loss: crossentropyloss.yaml
Expand All @@ -24,6 +25,8 @@ defaults:
# instead we define all modules and their paths directly in this config,
# so everything is stored in one place for more readibility

name: "rotnet_cb55_full_resnet18"

train: True
test: False
predict: False
Expand Down Expand Up @@ -67,6 +70,6 @@ callbacks:

logger:
wandb:
name: 'rotnet-resnet18-cb55'
name: ${name}
tags: [ "best_model", "USL"]
group: 'rotnet-baseline'
5 changes: 4 additions & 1 deletion configs/experiment/rotnet_resnet18_cb55_train10_last.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# python run.py +experiment=exp_example_full

defaults:
- /mode: experiment.yaml
- /plugins: default.yaml
- /task: classification.yaml
- /loss: crossentropyloss.yaml
Expand All @@ -24,6 +25,8 @@ defaults:
# instead we define all modules and their paths directly in this config,
# so everything is stored in one place for more readibility

name: "rotnet_cb55_train10_resnet18"

train: True
test: False
predict: False
Expand Down Expand Up @@ -78,6 +81,6 @@ callbacks:

logger:
wandb:
name: 'rotnet-resnet18-cb55-last10-train'
name: ${name}
tags: [ "best_model", "USL"]
group: 'rotnet-baseline'
5 changes: 4 additions & 1 deletion configs/experiment/rotnet_resnet18_cb55_train19_last.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# python run.py +experiment=exp_example_full

defaults:
- /mode: experiment.yaml
- /plugins: default.yaml
- /task: classification.yaml
- /loss: crossentropyloss.yaml
Expand All @@ -24,6 +25,8 @@ defaults:
# instead we define all modules and their paths directly in this config,
# so everything is stored in one place for more readibility

name: "rotnet_cb55_train19_resnet18"

train: True
test: False
predict: False
Expand Down Expand Up @@ -87,6 +90,6 @@ callbacks:

logger:
wandb:
name: 'rotnet-resnet18-cb55-last19-train'
name: ${name}
tags: [ "best_model", "USL"]
group: 'rotnet-baseline'
5 changes: 4 additions & 1 deletion configs/experiment/synthetic_baby_unet_layoutD_gtD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# python run.py +experiment=exp_example_full

defaults:
- /mode: experiment.yaml
- /plugins: default.yaml
- /task: semantic_segmentation_RGB_cropped.yaml
- /loss: crossentropyloss.yaml
Expand All @@ -24,6 +25,8 @@ defaults:
# instead we define all modules and their paths directly in this config,
# so everything is stored in one place for more readibility

name: "semantic_segmentation_synthetic_layoutD_gtD_baby_unet"

train: True
test: True
predict: False
Expand Down Expand Up @@ -64,6 +67,6 @@ callbacks:

logger:
wandb:
name: 'synthetic-baby-unet-layoutD-gtD'
name: ${name}
tags: [ "best_model", "synthetic", "layoutD", "gtD", "Rolf" ]
group: 'synthetic'
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# python run.py +experiment=exp_example_full

defaults:
- /mode: experiment.yaml
- /plugins: default.yaml
- /task: semantic_segmentation_RGB.yaml
- /datamodule: rolf_format_layoutD_gtD.yaml
Expand All @@ -25,6 +26,8 @@ defaults:
# instead we define all modules and their paths directly in this config,
# so everything is stored in one place for more readibility

name: "semantic_segmentation_synthetic_fullpage_layoutD_gtD_baby_unet"

train: True
test: True
predict: False
Expand Down Expand Up @@ -53,6 +56,6 @@ callbacks:

logger:
wandb:
name: 'synthetic-baby-unet-layoutD-gtD-rolf-format'
name: ${name}
tags: [ "best_model", "synthetic", "RolfFormat" ]
group: 'synthetic'
5 changes: 4 additions & 1 deletion configs/experiment/synthetic_baby_unet_layoutR_gtD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# python run.py +experiment=exp_example_full

defaults:
- /mode: experiment.yaml
- /plugins: default.yaml
- /task: semantic_segmentation_RGB_cropped.yaml
- /loss: crossentropyloss.yaml
Expand All @@ -24,6 +25,8 @@ defaults:
# instead we define all modules and their paths directly in this config,
# so everything is stored in one place for more readibility

name: "semantic_segmentation_synthetic_layoutR_gtD_baby_unet"

train: True
test: True
predict: False
Expand Down Expand Up @@ -64,6 +67,6 @@ callbacks:

logger:
wandb:
name: 'synthetic-baby-unet-layoutR-gtD'
name: ${name}
tags: [ "best_model", "synthetic", "layoutR", "gtD", "Rolf" ]
group: 'synthetic'
Empty file removed configs/hydra/default.yaml
Empty file.
Loading