DL-Art-School/codes/options/train/train_ESRGAN.yml

83 lines
1.6 KiB
YAML
Raw Normal View History

2019-08-23 13:42:47 +00:00
#### general settings
name: 003_RRDB_ESRGANx4_DIV2K
use_tb_logger: true
model: srgan
distortion: sr
scale: 4
2020-04-22 06:37:41 +00:00
gpu_ids: [0]
2020-05-02 01:56:14 +00:00
amp_opt_level: O1
2019-08-23 13:42:47 +00:00
#### datasets
datasets:
train:
name: DIV2K
mode: LQGT
2020-05-02 01:56:14 +00:00
dataroot_GT: E:/4k6k/datasets/div2k/DIV2K800_sub
dataroot_LQ: E:/4k6k/datasets/div2k/DIV2K800_sub_bicLRx4
2019-08-23 13:42:47 +00:00
use_shuffle: true
2020-04-22 06:37:41 +00:00
n_workers: 16 # per GPU
batch_size: 16
2020-04-22 06:37:41 +00:00
target_size: 128
2019-08-23 13:42:47 +00:00
use_flip: true
use_rot: true
color: RGB
val:
2020-04-22 06:37:41 +00:00
name: div2kval
2019-08-23 13:42:47 +00:00
mode: LQGT
2020-05-02 01:56:14 +00:00
dataroot_GT: E:/4k6k/datasets/div2k/div2k_valid_hr
dataroot_LQ: E:/4k6k/datasets/div2k/div2k_valid_lr_bicubic
2019-08-23 13:42:47 +00:00
#### network structures
network_G:
which_model_G: ResGen
nf: 256
2019-08-23 13:42:47 +00:00
network_D:
which_model_D: discriminator_resnet_passthrough
nf: 42
2019-08-23 13:42:47 +00:00
#### path
path:
2020-05-02 01:56:14 +00:00
pretrain_model_G: ~
2019-08-23 13:42:47 +00:00
strict_load: true
resume_state: ~
#### training settings: learning rate scheme, loss
train:
lr_G: !!float 1e-4
weight_decay_G: 0
beta1_G: 0.9
beta2_G: 0.99
lr_D: !!float 1e-4
weight_decay_D: 0
beta1_D: 0.9
beta2_D: 0.99
lr_scheme: MultiStepLR
niter: 400000
warmup_iter: -1 # no warm up
lr_steps: [50000, 100000, 200000, 300000]
lr_gamma: 0.5
mega_batch_factor: 1
2019-08-23 13:42:47 +00:00
pixel_criterion: l1
pixel_weight: !!float 1e-2
feature_criterion: l1
feature_weight: 1
2020-05-02 01:56:14 +00:00
feature_weight_decay: .98
feature_weight_decay_steps: 500
feature_weight_minimum: .1
gan_type: gan # gan | ragan
2019-08-23 13:42:47 +00:00
gan_weight: !!float 5e-3
2020-05-02 01:56:14 +00:00
D_update_ratio: 2
2019-08-23 13:42:47 +00:00
D_init_iters: 0
manual_seed: 10
2020-04-22 06:37:41 +00:00
val_freq: !!float 5e2
2019-08-23 13:42:47 +00:00
#### logger
logger:
2020-04-22 06:37:41 +00:00
print_freq: 50
save_checkpoint_freq: !!float 5e2