levircd.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Basic configurations of LEVIR-CD dataset
  2. seed: 1024
  3. datasets:
  4. train: !Node
  5. type: CDDataset
  6. args:
  7. data_dir: ./test_tipc/data/levircd/
  8. file_list: ./test_tipc/data/levircd/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/levircd/
  18. file_list: ./test_tipc/data/levircd/val.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: RandomHorizontalFlip
  30. args:
  31. prob: 0.5
  32. - !Node
  33. type: Normalize
  34. args:
  35. mean: [0.5, 0.5, 0.5]
  36. std: [0.5, 0.5, 0.5]
  37. eval:
  38. - !Node
  39. type: DecodeImg
  40. - !Node
  41. type: Normalize
  42. args:
  43. mean: [0.5, 0.5, 0.5]
  44. std: [0.5, 0.5, 0.5]
  45. download_on: False
  46. num_epochs: 10
  47. train_batch_size: 8
  48. save_interval_epochs: 5
  49. log_interval_steps: 50
  50. save_dir: ./test_tipc/output/cd/
  51. learning_rate: 0.002
  52. early_stop: False
  53. early_stop_patience: 5
  54. use_vdl: False
  55. resume_checkpoint: ''