makeup.yaml 1.2 KB
Newer Older
1
epochs: 100
L
lijianshe02 已提交
2
output_dir: tmp
L
lijianshe02 已提交
3 4 5 6 7 8 9 10 11 12 13 14 15
checkpoints_dir: checkpoints

model:
  name: MakeupModel
  generator:
    name: GeneratorPSGANAttention
    conv_dim: 64
    repeat_num: 6
  discriminator:
    name: NLayerDiscriminator
    ndf: 64
    n_layers: 3
    input_nc: 3
16
    norm_type: spectral
17 18 19 20 21 22 23 24 25 26 27 28
  cycle_criterion:
    name: L1Loss
  idt_criterion:
    name: L1Loss
    loss_weight: 0.5
  l1_criterion:
    name: L1Loss
  l2_criterion:
    name: MSELoss
  gan_criterion:
    name: GANLoss
    gan_mode: lsgan
L
lijianshe02 已提交
29 30 31 32 33

dataset:
  train:
    name: MakeupDataset
    trans_size: 256
L
LielinJiang 已提交
34
    dataroot: data/MT-Dataset
L
lijianshe02 已提交
35 36 37 38 39
    cls_list: [non-makeup, makeup]
    phase: train
  test:
    name: MakeupDataset
    trans_size: 256
L
LielinJiang 已提交
40
    dataroot: data/MT-Dataset
L
lijianshe02 已提交
41 42 43 44 45
    cls_list: [non-makeup, makeup]
    phase: test


lr_scheduler:
46
  name: LinearDecay
L
lijianshe02 已提交
47 48 49
  learning_rate: 0.0002
  start_epoch: 100
  decay_epochs: 100
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
  # will get from real dataset
  iters_per_epoch: 1

optimizer:
  optimizer_G:
    name: Adam
    net_names:
      - netG
    beta1: 0.5
  optimizer_DA:
    name: Adam
    net_names:
      - netD_A
    beta1: 0.5
  optimizer_DB:
    name: Adam
    net_names:
      - netD_B
    beta1: 0.5
L
lijianshe02 已提交
69 70 71 72 73 74

log_config:
  interval: 10
  visiual_interval: 500

snapshot_config:
75
  interval: 5