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

98 lines
1.9 KiB
YAML
Raw Normal View History

2020-05-12 16:07:58 +00:00
#### general settings
name: train_vix_corrupt
use_tb_logger: true
model: corruptgan
distortion: downsample
scale: 1
gpu_ids: [0]
2020-05-13 15:20:28 +00:00
amp_opt_level: O0
2020-05-12 16:07:58 +00:00
#### datasets
datasets:
train:
name: blacked
mode: downsample
2020-05-13 15:20:28 +00:00
dataroot_GT: E:\\4k6k\\datasets\\vixen\\4k_closeup\\lr_corrupted
2020-05-12 16:07:58 +00:00
dataroot_LQ: G:\\data\\pr_upsample\\ultra_lowq\\for_training\\lr
mismatched_Data_OK: true
use_shuffle: true
2020-05-13 21:27:49 +00:00
n_workers: 12 # per GPU
2020-05-13 15:20:28 +00:00
batch_size: 24
2020-05-12 16:07:58 +00:00
target_size: 64
use_flip: false
use_rot: false
doCrop: false
color: RGB
val:
name: blacked_val
mode: downsample
target_size: 64
dataroot_GT: E:\\4k6k\\datasets\\vixen\\val
dataroot_LQ: E:\\4k6k\\datasets\\vixen\\val
#### network structures
network_G:
which_model_G: ResGenV2
2020-05-13 15:20:28 +00:00
nf: 192
nb_denoiser: 20
2020-05-12 16:07:58 +00:00
nb_upsampler: 0
upscale_applications: 0
inject_noise: False
2020-05-12 16:07:58 +00:00
network_D:
which_model_D: discriminator_vgg_128
in_nc: 3
2020-05-13 15:20:28 +00:00
nf: 64
2020-05-12 16:07:58 +00:00
#### path
path:
pretrain_model_G: ~
pretrain_model_D: ~
resume_state: ~
2020-05-12 16:07:58 +00:00
strict_load: true
#### training settings: learning rate scheme, loss
train:
2020-05-13 15:20:28 +00:00
lr_G: !!float 1e-4
2020-05-12 16:07:58 +00:00
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
2020-05-13 15:20:28 +00:00
D_noise_theta_init: .01
D_noise_final_it: 20000
D_noise_theta_floor: .005
2020-05-12 16:07:58 +00:00
lr_scheme: MultiStepLR
niter: 400000
warmup_iter: -1 # no warm up
2020-05-13 15:20:28 +00:00
lr_steps: [15000, 50000, 100000, 200000]
2020-05-12 16:07:58 +00:00
lr_gamma: 0.5
pixel_criterion: l2
pixel_weight: !!float 1e-2
feature_criterion: l1
2020-05-13 15:20:28 +00:00
feature_weight: 1.0
feature_weight_decay: .98
feature_weight_decay_steps: 1000
feature_weight_minimum: .5
gan_type: ragan # gan | ragan
gan_weight: .1
2020-05-12 16:07:58 +00:00
mega_batch_factor: 1
swapout_G_freq: 113
swapout_D_freq: 223
swapout_duration: 40
2020-05-12 16:07:58 +00:00
D_update_ratio: 1
D_init_iters: -1
manual_seed: 10
val_freq: !!float 5e2
#### logger
logger:
print_freq: 50
save_checkpoint_freq: 500