wgan_mnist.yaml 1.0 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
epochs: 200
output_dir: output_dir

model:
  name: GANModel
  generator:
    name: DeepConvGenerator
    latent_dim: 128
    output_nc: 1
    size: 28
    ngf: 64
  discriminator:
    name: NLayerDiscriminator
    ndf: 16
    n_layers: 3
    input_nc: 1
    norm_type: instance
  gan_mode: wgan
  n_critic: 5

dataset:
  train:
    name: CommonVisionDataset
    class_name: MNIST
    dataroot: None
    num_workers: 4
    batch_size: 64
    mode: train
    return_cls: False
    transforms:
      - name: Normalize
        mean: [127.5]
        std: [127.5]
        keys: [image]
  test:
    name: CommonVisionDataset
    class_name: MNIST
    dataroot: None
    num_workers: 0
    batch_size: 64
    mode: test
    transforms:
      - name: Normalize
        mean: [127.5]
        std: [127.5]
        keys: [image]
    return_cls: False


optimizer:
  name: Adam
  beta1: 0.5

lr_scheduler:
  name: linear
  learning_rate: 0.0002
  start_epoch: 100
  decay_epochs: 100

log_config:
  interval: 100
  visiual_interval: 500

snapshot_config:
  interval: 5