human_matting-resnet34_vd.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. batch_size: 4
  2. iters: 50000
  3. train_dataset:
  4. type: MattingDataset
  5. dataset_root: data/PPM-100
  6. train_file: train.txt
  7. transforms:
  8. - type: LoadImages
  9. - type: RandomResize
  10. size: [2048, 2048]
  11. scale: [0.3, 1.5]
  12. - type: RandomCrop
  13. crop_size: [2048, 2048]
  14. - type: RandomDistort
  15. - type: RandomBlur
  16. prob: 0.1
  17. - type: RandomHorizontalFlip
  18. - type: Padding
  19. target_size: [2048, 2048]
  20. - type: Normalize
  21. mode: train
  22. val_dataset:
  23. type: MattingDataset
  24. dataset_root: data/PPM-100
  25. val_file: val.txt
  26. transforms:
  27. - type: LoadImages
  28. - type: ResizeByShort
  29. short_size: 2048
  30. - type: ResizeToIntMult
  31. mult_int: 128
  32. - type: Normalize
  33. mode: val
  34. get_trimap: False
  35. model:
  36. type: HumanMatting
  37. backbone:
  38. type: ResNet34_vd
  39. pretrained: https://paddleseg.bj.bcebos.com/matting/models/ResNet34_vd_pretrained/model.pdparams
  40. pretrained: Null
  41. if_refine: True
  42. optimizer:
  43. type: sgd
  44. momentum: 0.9
  45. weight_decay: 4.0e-5
  46. lr_scheduler:
  47. type: PiecewiseDecay
  48. boundaries: [30000, 40000]
  49. values: [0.001, 0.0001, 0.00001]