modnet-mobilenetv2.yml 938 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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: RandomCrop
  10. crop_size: [512, 512]
  11. - type: RandomDistort
  12. - type: RandomBlur
  13. - type: RandomHorizontalFlip
  14. - type: Normalize
  15. mode: train
  16. val_dataset:
  17. type: MattingDataset
  18. dataset_root: data/PPM-100
  19. val_file: val.txt
  20. transforms:
  21. - type: LoadImages
  22. - type: ResizeByShort
  23. short_size: 512
  24. - type: ResizeToIntMult
  25. mult_int: 32
  26. - type: Normalize
  27. mode: val
  28. get_trimap: False
  29. model:
  30. type: MODNet
  31. backbone:
  32. type: MobileNetV2
  33. pretrained: https://paddleseg.bj.bcebos.com/matting/models/MobileNetV2_pretrained/model.pdparams
  34. pretrained: Null
  35. optimizer:
  36. type: sgd
  37. momentum: 0.9
  38. weight_decay: 4.0e-5
  39. lr_scheduler:
  40. type: PiecewiseDecay
  41. boundaries: [40000, 80000]
  42. values: [0.02, 0.002, 0.0002]