MaskFormer_small.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Global:
  2. model: MaskFormer_small
  3. mode: check_dataset # check_dataset/train/evaluate/predict
  4. dataset_dir: "/paddle/dataset/paddlex/seg/seg_optic_examples"
  5. device: gpu:0,1,2,3
  6. output: "output"
  7. CheckDataset:
  8. convert:
  9. enable: False
  10. src_dataset_type: null
  11. split:
  12. enable: False
  13. train_percent: null
  14. val_percent: null
  15. Train:
  16. epochs_iters: 500
  17. num_classes: 2
  18. batch_size: 2
  19. learning_rate: 0.01
  20. pretrain_weight_path: https://paddle-model-ecology.bj.bcebos.com/paddlex/official_pretrained_model/MaskFormer_small_pretrained.pdparams
  21. warmup_steps: 0
  22. resume_path: null
  23. log_interval: 10
  24. eval_interval: 100
  25. input_shape: [1, 3, 512, 512] # export the model with fixed input shape
  26. Evaluate:
  27. weight_path: "output/best_model/model.pdparams"
  28. log_interval: 10
  29. Export:
  30. weight_path: https://paddle-model-ecology.bj.bcebos.com/paddlex/official_pretrained_model/MaskFormer_small_pretrained.pdparams
  31. input_shape: [1, 3, 512, 512]
  32. Predict:
  33. batch_size: 1
  34. model_dir: "output/best_model/inference"
  35. input: "https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/general_semantic_segmentation_001.jpg"
  36. kernel_option:
  37. run_mode: paddle