2020-05-04 20:01:43 +00:00
|
|
|
#### general settings
|
|
|
|
name: blacked_fix_and_upconv_xl
|
|
|
|
use_tb_logger: true
|
|
|
|
model: srgan
|
|
|
|
distortion: sr
|
|
|
|
scale: 4
|
|
|
|
gpu_ids: [0]
|
|
|
|
amp_opt_level: O1
|
|
|
|
|
|
|
|
#### datasets
|
|
|
|
datasets:
|
|
|
|
train:
|
|
|
|
name: vixcloseup
|
|
|
|
mode: LQGT
|
2020-05-12 16:07:58 +00:00
|
|
|
dataroot_GT: E:\4k6k\datasets\vixen\4k_closeup\hr
|
|
|
|
dataroot_LQ: [E:\4k6k\datasets\vixen\4k_closeup\lr_corrupted, E:\4k6k\datasets\vixen\4k_closeup\lr_c_blurred]
|
2020-05-04 20:01:43 +00:00
|
|
|
doCrop: false
|
|
|
|
use_shuffle: true
|
2020-05-12 16:07:58 +00:00
|
|
|
n_workers: 20 # per GPU
|
|
|
|
batch_size: 32
|
|
|
|
target_size: 192
|
2020-05-04 20:01:43 +00:00
|
|
|
color: RGB
|
|
|
|
val:
|
|
|
|
name: adrianna_val
|
|
|
|
mode: LQGT
|
|
|
|
dataroot_GT: E:\4k6k\datasets\adrianna\val\hhq
|
|
|
|
dataroot_LQ: E:\4k6k\datasets\adrianna\val\hr
|
|
|
|
|
|
|
|
#### network structures
|
|
|
|
network_G:
|
2020-05-05 17:59:46 +00:00
|
|
|
which_model_G: ResGen
|
2020-05-12 16:07:58 +00:00
|
|
|
nf: 164
|
|
|
|
nb_denoiser: 12
|
|
|
|
nb_upsampler: 8
|
2020-05-04 20:01:43 +00:00
|
|
|
network_D:
|
|
|
|
which_model_D: discriminator_resnet_passthrough
|
2020-05-12 16:07:58 +00:00
|
|
|
nf: 52
|
2020-05-04 20:01:43 +00:00
|
|
|
|
|
|
|
#### path
|
|
|
|
path:
|
2020-05-06 23:25:48 +00:00
|
|
|
#pretrain_model_G: ../experiments/pretrained_resnet_G.pth
|
2020-05-05 14:34:57 +00:00
|
|
|
#pretrain_model_D: ~
|
2020-05-04 20:01:43 +00:00
|
|
|
strict_load: true
|
2020-05-12 16:07:58 +00:00
|
|
|
resume_state: ../experiments/blacked_fix_and_upconv_xl/training_state/68000.state
|
2020-05-04 20:01:43 +00:00
|
|
|
|
|
|
|
#### training settings: learning rate scheme, loss
|
|
|
|
train:
|
2020-05-12 16:07:58 +00:00
|
|
|
lr_G: !!float 6e-5
|
2020-05-04 20:01:43 +00:00
|
|
|
weight_decay_G: 0
|
|
|
|
beta1_G: 0.9
|
|
|
|
beta2_G: 0.99
|
2020-05-12 16:07:58 +00:00
|
|
|
lr_D: !!float 6e-5
|
2020-05-04 20:01:43 +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-12 16:07:58 +00:00
|
|
|
lr_steps: [20000, 60000, 80000, 100000]
|
2020-05-04 20:01:43 +00:00
|
|
|
lr_gamma: 0.5
|
2020-05-12 16:07:58 +00:00
|
|
|
mega_batch_factor: 2
|
2020-05-04 20:01:43 +00:00
|
|
|
|
|
|
|
pixel_criterion: l1
|
|
|
|
pixel_weight: !!float 1e-2
|
|
|
|
feature_criterion: l1
|
|
|
|
feature_weight: 1
|
|
|
|
feature_weight_decay: 1
|
|
|
|
feature_weight_decay_steps: 500
|
|
|
|
feature_weight_minimum: 1
|
|
|
|
gan_type: gan # gan | ragan
|
|
|
|
gan_weight: !!float 1e-2
|
|
|
|
|
2020-05-12 16:07:58 +00:00
|
|
|
D_update_ratio: 1
|
2020-05-06 23:25:48 +00:00
|
|
|
D_init_iters: 0
|
2020-05-04 20:01:43 +00:00
|
|
|
|
|
|
|
manual_seed: 10
|
|
|
|
val_freq: !!float 5e2
|
|
|
|
|
|
|
|
#### logger
|
|
|
|
logger:
|
|
|
|
print_freq: 50
|
|
|
|
save_checkpoint_freq: !!float 5e2
|