-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.yaml
99 lines (72 loc) · 1.61 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Paths to read and save data
parent_path:
path_csv: dataframes/CholecT45.csv
train_path: data/
output_dir:
# Cholec80 phase annotations path
phase : false
cholec80_phase_path : # example: local_path/cholec80/phase_annotations
# General Settings
debug: false
device: cuda:0
# Hyperparameter
exp: myexp
nworkers: 12
# Data split
challenge_split: true
n_fold : 5
trn_fold:
- 0
- 1
- 2
- 3
- 4
step_dom : 1
step_min : 1
# Target column param
col0: tri0
target_size: 131
target_col : multi_tri
multi: true
# Model hyperparams
model_name: swin_base_patch4_window7_224
pretrained: true
weight_dir :
local_weight : false
pretrained_model: false
# Augmentation params
height: 224
width: 224
# Training params
epochs: 20
T_0: 21 # CosineAnnealingWarmRestarts
lr: 2e-4
min_lr: 2e-5
batch_size: 64
valid_batch_size: 64
weight_decay: 1e-6
seed: 142
early_stopping : false
# Self-distillation
SD: 1
distill : False
# Label smoothing
smooth : false
ls : 0.1
# Drop noisy frames
drop_all: False
drop_black: False
filter_black: true
# Leave out an independent test set of 5 videos
test_inference: false
# Inference
save_folder :
inference : true
ensemble : False
ensemble_models :
# Neptune logging
neplog: false
neptune_project:
neptune_api_token:
gradient_accumulation_steps: 2
max_grad_norm: 1000