airchange.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # Basic configurations of AirChange dataset
  2. seed: 1024
  3. datasets:
  4. train: !Node
  5. type: CDDataset
  6. args:
  7. data_dir: ./test_tipc/data/airchange/
  8. file_list: ./test_tipc/data/airchange/train.txt
  9. label_list: null
  10. num_workers: 0
  11. shuffle: True
  12. with_seg_labels: False
  13. binarize_labels: True
  14. eval: !Node
  15. type: CDDataset
  16. args:
  17. data_dir: ./test_tipc/data/airchange/
  18. file_list: ./test_tipc/data/airchange/eval.txt
  19. label_list: null
  20. num_workers: 0
  21. shuffle: False
  22. with_seg_labels: False
  23. binarize_labels: True
  24. transforms:
  25. train:
  26. - !Node
  27. type: DecodeImg
  28. - !Node
  29. type: RandomCrop
  30. args:
  31. crop_size: 256
  32. aspect_ratio: [0.5, 2.0]
  33. scaling: [0.2, 1.0]
  34. - !Node
  35. type: RandomHorizontalFlip
  36. args:
  37. prob: 0.5
  38. - !Node
  39. type: Normalize
  40. args:
  41. mean: [0.5, 0.5, 0.5]
  42. std: [0.5, 0.5, 0.5]
  43. eval:
  44. - !Node
  45. type: DecodeImg
  46. - !Node
  47. type: Normalize
  48. args:
  49. mean: [0.5, 0.5, 0.5]
  50. std: [0.5, 0.5, 0.5]
  51. download_on: False
  52. download_url: https://paddlers.bj.bcebos.com/datasets/airchange.zip
  53. download_path: ./test_tipc/data/
  54. num_epochs: 5
  55. train_batch_size: 4
  56. save_interval_epochs: 5
  57. log_interval_steps: 50
  58. save_dir: ./test_tipc/output/cd/
  59. learning_rate: 0.01
  60. early_stop: False
  61. early_stop_patience: 5
  62. use_vdl: False
  63. resume_checkpoint: ''