Hannes Kuchelmeister
commited on
Commit
•
ee280e5
1
Parent(s):
d908fd7
add configuration files for model
Browse files
models/configs/datamodule/focus.yaml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
_target_: src.datamodules.focus_datamodule.FocusDataModule
|
2 |
+
|
3 |
+
data_dir: ${data_dir}/focus # data_dir is specified in config.yaml
|
4 |
+
csv_file: ${data_dir}/focus/metadata.csv
|
5 |
+
batch_size: 64
|
6 |
+
train_val_test_split_percentage: [0.7, 0.15, 0.15]
|
7 |
+
num_workers: 0
|
8 |
+
pin_memory: False
|
models/configs/model/focus.yaml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
_target_: src.models.focus_module.FocusLitModule
|
2 |
+
|
3 |
+
input_size: 16875
|
4 |
+
lin1_size: 256
|
5 |
+
lin2_size: 256
|
6 |
+
lin3_size: 256
|
7 |
+
output_size: 1
|
8 |
+
lr: 0.001
|
9 |
+
weight_decay: 0.0005
|
models/configs/test.yaml
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
# specify here default evaluation configuration
|
4 |
defaults:
|
5 |
- _self_
|
6 |
-
- datamodule:
|
7 |
-
- model:
|
8 |
- callbacks: null
|
9 |
- logger: null
|
10 |
- trainer: default.yaml
|
|
|
3 |
# specify here default evaluation configuration
|
4 |
defaults:
|
5 |
- _self_
|
6 |
+
- datamodule: foucs.yaml # choose the datamodule for evaluation
|
7 |
+
- model: focus.yaml
|
8 |
- callbacks: null
|
9 |
- logger: null
|
10 |
- trainer: default.yaml
|
models/configs/train.yaml
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
# specify here default training configuration
|
4 |
defaults:
|
5 |
- _self_
|
6 |
-
- datamodule:
|
7 |
-
- model:
|
8 |
- callbacks: default.yaml
|
9 |
- logger: null # set logger here or use command line (e.g. `python train.py logger=tensorboard`)
|
10 |
-
- trainer:
|
11 |
- log_dir: default.yaml
|
12 |
|
13 |
# experiment configs allow for version control of specific configurations
|
@@ -34,7 +34,7 @@ defaults:
|
|
34 |
original_work_dir: ${hydra:runtime.cwd}
|
35 |
|
36 |
# path to folder with data
|
37 |
-
data_dir: ${original_work_dir}/data
|
38 |
|
39 |
# pretty print config at the start of the run using Rich library
|
40 |
print_config: True
|
|
|
3 |
# specify here default training configuration
|
4 |
defaults:
|
5 |
- _self_
|
6 |
+
- datamodule: focus.yaml
|
7 |
+
- model: focus.yaml
|
8 |
- callbacks: default.yaml
|
9 |
- logger: null # set logger here or use command line (e.g. `python train.py logger=tensorboard`)
|
10 |
+
- trainer: long.yaml
|
11 |
- log_dir: default.yaml
|
12 |
|
13 |
# experiment configs allow for version control of specific configurations
|
|
|
34 |
original_work_dir: ${hydra:runtime.cwd}
|
35 |
|
36 |
# path to folder with data
|
37 |
+
data_dir: ${original_work_dir}/data
|
38 |
|
39 |
# pretty print config at the start of the run using Rich library
|
40 |
print_config: True
|
models/configs/trainer/long.yaml
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
_target_: pytorch_lightning.Trainer
|
2 |
+
|
3 |
+
gpus: 0
|
4 |
+
|
5 |
+
min_epochs: 1
|
6 |
+
max_epochs: 100
|
7 |
+
|
8 |
+
# number of validation steps to execute at the beginning of the training
|
9 |
+
# num_sanity_val_steps: 0
|
10 |
+
|
11 |
+
# ckpt path
|
12 |
+
resume_from_checkpoint: null
|