2020-04-22 06:37:54 +00:00
|
|
|
#### general settings
|
2020-05-02 01:56:14 +00:00
|
|
|
name: blacked_fix_and_upconv
|
2020-04-22 06:37:54 +00:00
|
|
|
use_tb_logger: true
|
|
|
|
model: srgan
|
|
|
|
distortion: sr
|
|
|
|
scale: 4
|
|
|
|
gpu_ids: [0]
|
2020-05-04 14:48:25 +00:00
|
|
|
amp_opt_level: O1
|
2020-04-22 06:37:54 +00:00
|
|
|
|
|
|
|
#### datasets
|
|
|
|
datasets:
|
|
|
|
train:
|
2020-05-02 01:56:14 +00:00
|
|
|
name: vixcloseup
|
2020-04-22 06:37:54 +00:00
|
|
|
mode: LQGT
|
2020-05-02 01:56:14 +00:00
|
|
|
dataroot_GT: K:\4k6k\4k_closeup\hr
|
|
|
|
dataroot_LQ: K:\4k6k\4k_closeup\lr_corrupted
|
2020-05-02 23:46:59 +00:00
|
|
|
doCrop: false
|
2020-04-22 06:37:54 +00:00
|
|
|
use_shuffle: true
|
2020-05-04 20:01:43 +00:00
|
|
|
n_workers: 0 # per GPU
|
2020-05-04 14:48:25 +00:00
|
|
|
batch_size: 40
|
2020-05-02 01:56:14 +00:00
|
|
|
target_size: 256
|
2020-04-22 06:37:54 +00:00
|
|
|
color: RGB
|
|
|
|
val:
|
2020-05-02 01:56:14 +00:00
|
|
|
name: adrianna_val
|
2020-04-22 06:37:54 +00:00
|
|
|
mode: LQGT
|
2020-05-02 01:56:14 +00:00
|
|
|
dataroot_GT: E:\4k6k\datasets\adrianna\val\hhq
|
|
|
|
dataroot_LQ: E:\4k6k\datasets\adrianna\val\hr
|
2020-04-22 06:37:54 +00:00
|
|
|
|
|
|
|
#### network structures
|
|
|
|
network_G:
|
|
|
|
which_model_G: RRDBNet
|
|
|
|
in_nc: 3
|
|
|
|
out_nc: 3
|
2020-05-02 01:56:14 +00:00
|
|
|
nf: 48
|
2020-04-22 06:37:54 +00:00
|
|
|
nb: 23
|
|
|
|
network_D:
|
2020-05-02 01:56:14 +00:00
|
|
|
which_model_D: discriminator_resnet
|
2020-04-22 06:37:54 +00:00
|
|
|
in_nc: 3
|
2020-05-02 01:56:14 +00:00
|
|
|
nf: 48
|
2020-04-22 06:37:54 +00:00
|
|
|
|
|
|
|
#### path
|
|
|
|
path:
|
2020-05-04 14:48:25 +00:00
|
|
|
pretrain_model_G: ../experiments/rrdb_blacked_gan_g.pth
|
|
|
|
pretrain_model_D: ~
|
2020-04-22 06:37:54 +00:00
|
|
|
strict_load: true
|
2020-05-04 20:01:43 +00:00
|
|
|
resume_state: ../experiments/blacked_fix_and_upconv/training_state/16500.state
|
2020-04-22 06:37:54 +00:00
|
|
|
|
|
|
|
#### training settings: learning rate scheme, loss
|
|
|
|
train:
|
2020-05-04 14:48:25 +00:00
|
|
|
lr_G: !!float 1e-5
|
2020-04-22 06:37:54 +00:00
|
|
|
weight_decay_G: 0
|
|
|
|
beta1_G: 0.9
|
|
|
|
beta2_G: 0.99
|
2020-05-04 14:48:25 +00:00
|
|
|
lr_D: !!float 4e-5
|
2020-04-22 06:37:54 +00:00
|
|
|
weight_decay_D: 0
|
|
|
|
beta1_D: 0.9
|
|
|
|
beta2_D: 0.99
|
|
|
|
lr_scheme: MultiStepLR
|
|
|
|
|
|
|
|
niter: 400000
|
|
|
|
warmup_iter: -1 # no warm up
|
2020-05-02 23:46:59 +00:00
|
|
|
lr_steps: [5000, 20000, 40000, 60000]
|
2020-04-22 06:37:54 +00:00
|
|
|
lr_gamma: 0.5
|
2020-05-04 14:48:25 +00:00
|
|
|
mega_batch_factor: 4
|
2020-04-22 06:37:54 +00:00
|
|
|
|
|
|
|
pixel_criterion: l1
|
|
|
|
pixel_weight: !!float 1e-2
|
|
|
|
feature_criterion: l1
|
2020-05-02 23:46:59 +00:00
|
|
|
feature_weight: 0
|
|
|
|
feature_weight_decay: .9
|
2020-05-04 14:48:25 +00:00
|
|
|
feature_weight_decay_steps: 501
|
|
|
|
feature_weight_minimum: 0
|
2020-05-02 01:56:14 +00:00
|
|
|
gan_type: gan # gan | ragan
|
2020-05-02 23:46:59 +00:00
|
|
|
gan_weight: 1
|
2020-04-22 06:37:54 +00:00
|
|
|
|
|
|
|
D_update_ratio: 1
|
2020-05-04 14:48:25 +00:00
|
|
|
D_init_iters: 997
|
2020-04-22 06:37:54 +00:00
|
|
|
|
|
|
|
manual_seed: 10
|
|
|
|
val_freq: !!float 5e2
|
|
|
|
|
|
|
|
#### logger
|
|
|
|
logger:
|
|
|
|
print_freq: 50
|
|
|
|
save_checkpoint_freq: !!float 5e2
|