Spaces:
Running
Running
Create training.yaml
Browse files- training.yaml +43 -0
training.yaml
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Training configuration
|
2 |
+
GPU: [0,1,2,3]
|
3 |
+
|
4 |
+
VERBOSE: False
|
5 |
+
|
6 |
+
SWINUNET:
|
7 |
+
IMG_SIZE: 256
|
8 |
+
PATCH_SIZE: 4
|
9 |
+
WIN_SIZE: 8
|
10 |
+
EMB_DIM: 96
|
11 |
+
DEPTH_EN: [8, 8, 8, 8]
|
12 |
+
HEAD_NUM: [8, 8, 8, 8]
|
13 |
+
MLP_RATIO: 4.0
|
14 |
+
QKV_BIAS: True
|
15 |
+
QK_SCALE: 8
|
16 |
+
DROP_RATE: 0.
|
17 |
+
ATTN_DROP_RATE: 0.
|
18 |
+
DROP_PATH_RATE: 0.1
|
19 |
+
APE: False
|
20 |
+
PATCH_NORM: True
|
21 |
+
USE_CHECKPOINTS: False
|
22 |
+
FINAL_UPSAMPLE: 'Dual up-sample'
|
23 |
+
|
24 |
+
MODEL:
|
25 |
+
MODE: 'Denoising'
|
26 |
+
|
27 |
+
# Optimization arguments.
|
28 |
+
OPTIM:
|
29 |
+
BATCH: 2
|
30 |
+
EPOCHS: 200
|
31 |
+
# EPOCH_DECAY: [10]
|
32 |
+
LR_INITIAL: 2e-4
|
33 |
+
LR_MIN: 1e-6
|
34 |
+
# BETA1: 0.9
|
35 |
+
|
36 |
+
TRAINING:
|
37 |
+
VAL_AFTER_EVERY: 1
|
38 |
+
RESUME: True
|
39 |
+
TRAIN_PS: 256
|
40 |
+
VAL_PS: 256
|
41 |
+
TRAIN_DIR: './datasets/Denoising_DIV2K/train' # path to training data
|
42 |
+
VAL_DIR: './datasets/Denoising_DIV2K/test' # path to validation data
|
43 |
+
SAVE_DIR: './checkpoints' # path to save models and images
|