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

88 lines
1.7 KiB
YAML
Raw Normal View History

2020-04-22 06:37:54 +00:00
#### general settings
2020-04-24 05:58:27 +00:00
name: ESRGANx4_blacked_ramped_feat
2020-04-22 06:37:54 +00:00
use_tb_logger: true
model: srgan
distortion: sr
scale: 4
gpu_ids: [0]
amp_opt_level: O1
#### datasets
datasets:
train:
name: blacked
mode: LQGT
dataroot_GT: ../datasets/blacked/train/hr
dataroot_LQ: ../datasets/lqprn/train/lr
dataroot_PIX: ../datasets/lqprn/train/hr
2020-04-22 06:37:54 +00:00
use_shuffle: true
n_workers: 4 # per GPU
batch_size: 12
target_size: 256
use_flip: false
use_rot: false
color: RGB
val:
name: blacked_val
mode: LQGT
dataroot_GT: ../datasets/vrp/validation/hr
dataroot_LQ: ../datasets/vrp/validation/lr
#### network structures
network_G:
which_model_G: RRDBNet
in_nc: 3
out_nc: 3
nf: 64
nb: 23
network_D:
which_model_D: discriminator_vgg_128
in_nc: 3
nf: 64
#### path
path:
2020-04-24 05:58:27 +00:00
pretrain_model_G: ../experiments/blacked_ft_G.pth
pretrain_model_D: ../experiments/blacked_ft_D.pth
resume_state: ~
2020-04-22 06:37:54 +00:00
strict_load: true
#### 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
2020-04-24 05:58:27 +00:00
lr_steps: [10000, 20000, 30000, 40000, 50000]
2020-04-22 06:37:54 +00:00
lr_gamma: 0.5
pixel_criterion: l1
2020-04-24 05:58:27 +00:00
pixel_weight: !!float 1e-2
2020-04-22 06:37:54 +00:00
feature_criterion: l1
2020-04-24 05:58:27 +00:00
feature_weight: !!float 1e0
feature_weight_decay: .95
feature_weight_decay_steps: 2500
feature_weight_minimum: !!float 1e-3
2020-04-22 06:37:54 +00:00
gan_type: ragan # gan | ragan
gan_weight: !!float 1e-1
D_update_ratio: 1
D_init_iters: 0
manual_seed: 10
val_freq: !!float 5e2
#### logger
logger:
print_freq: 50
save_checkpoint_freq: !!float 5e2