dim-vgg16.yml 891 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. batch_size: 16
  2. iters: 100000
  3. train_dataset:
  4. type: MattingDataset
  5. dataset_root: data/PPM-100
  6. train_file: train.txt
  7. transforms:
  8. - type: LoadImages
  9. - type: RandomCropByAlpha
  10. crop_size: [[320, 320], [480, 480], [640, 640]]
  11. - type: Resize
  12. target_size: [320, 320]
  13. - type: RandomDistort
  14. - type: RandomBlur
  15. - type: RandomHorizontalFlip
  16. - type: Normalize
  17. mode: train
  18. get_trimap: True
  19. val_dataset:
  20. type: MattingDataset
  21. dataset_root: data/PPM-100
  22. val_file: val.txt
  23. transforms:
  24. - type: LoadImages
  25. - type: LimitLong
  26. max_long: 3840
  27. - type: Normalize
  28. mode: val
  29. get_trimap: True
  30. model:
  31. type: DIM
  32. backbone:
  33. type: VGG16
  34. input_channels: 4
  35. pretrained: https://paddleseg.bj.bcebos.com/matting/models/DIM_VGG16_pretrained/model.pdparams
  36. pretrained: Null
  37. optimizer:
  38. type: adam
  39. learning_rate:
  40. value: 0.001