forked from XPixelGroup/DiffBIR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
train_swinir.yaml
47 lines (42 loc) · 1.27 KB
/
train_swinir.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
data:
target: dataset.data_module.BIRDataModule
params:
# Path to training set configuration file.
train_config:
# Path to validation set configuration file.
val_config:
model:
# You can set learning rate in the following configuration file.
config: configs/model/swinir.yaml
# Path to the checkpoints or weights you want to resume.
resume: ~
lightning:
seed: 231
trainer:
accelerator: ddp
precision: 32
# Indices of GPUs used for training.
gpus: [0, 1, 2]
# Path to save logs and checkpoints.
default_root_dir:
# Max number of training steps (batches).
max_steps: 150001
# Validation frequency in terms of training steps.
val_check_interval: 500
# Log frequency of tensorboard logger.
log_every_n_steps: 50
# Accumulate gradients from multiple batches so as to increase batch size.
accumulate_grad_batches: 1
callbacks:
- target: model.callbacks.ImageLogger
params:
# Log frequency of image logger.
log_every_n_steps: 1000
max_images_each_step: 4
log_images_kwargs: ~
- target: model.callbacks.ModelCheckpoint
params:
# Frequency of saving checkpoints.
every_n_train_steps: 10000
save_top_k: -1
filename: "{step}"