sup_bus_bra_opt.yaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. trainer:
  2. name: supervised_segmentation
  3. train:
  4. seed: 42
  5. deterministic: false
  6. epochs: 240
  7. batch_size: 48
  8. val_batch_size: 48
  9. accum_steps: 1
  10. amp: true
  11. num_workers: 4
  12. pin_memory: true
  13. persistent_workers: true
  14. prefetch_factor: 2
  15. device: cuda
  16. grad_clip:
  17. enabled: true
  18. max_norm: 1.0
  19. norm_type: 2.0
  20. metrics:
  21. task_mode: binary
  22. metrics:
  23. - name: dice
  24. - name: iou
  25. loss:
  26. name: dicece
  27. task_mode: binary
  28. params:
  29. include_background: true
  30. lambda_dice: 0.7
  31. lambda_ce: 0.3
  32. validation:
  33. enabled: true
  34. interval: 1
  35. threshold: 0.5
  36. early_stopping: true
  37. early_stopping_patience: 55
  38. early_stopping_min_delta: 0.0
  39. metrics:
  40. task_mode: binary
  41. metrics:
  42. - name: dice
  43. - name: iou
  44. dataset:
  45. name: ultrasound_sup_seg
  46. dataset_name: BUS-BRA
  47. root: data/BUS-BRA
  48. split: train
  49. split_file: null
  50. val_split: val
  51. val_split_file: null
  52. image_size: [384, 384]
  53. in_channels: 3
  54. num_classes: 1
  55. model:
  56. in_channels: 3
  57. encoder_channels: [32, 64, 128, 192]
  58. encoder_depths: [2, 2, 2, 2]
  59. decoder_channels: [128, 64, 32]
  60. stem_channels: 24
  61. bottleneck_depth: 1
  62. global_ratio: 2.0
  63. wavelet_type: haar
  64. wavelet_level: 1
  65. use_wavelet_branch: true
  66. use_global_branch_stage1: false
  67. ssm_d_state: 16
  68. ssm_forward_type: v3
  69. ssm_backend: auto
  70. use_frequency_refine: true
  71. low_freq_radius_h: 0.25
  72. low_freq_radius_w: 0.25
  73. learnable_low_freq_radius: true
  74. guide_mode: affine
  75. out_channels: null
  76. optimizer:
  77. name: adamw
  78. lr: 1.2e-4
  79. weight_decay: 0.05
  80. scheduler:
  81. name: cosine
  82. warmup:
  83. name: linear
  84. params:
  85. start_factor: 0.1
  86. total_iters: 15
  87. params:
  88. T_max: 230
  89. eta_min: 1.0e-6
  90. augmentation:
  91. train:
  92. random_flip: true
  93. random_rotate_90: true
  94. random_brightness_contrast: true
  95. brightness_limit: 0.18
  96. contrast_limit: 0.18
  97. random_gaussian_noise: true
  98. gaussian_noise_std: 0.03
  99. val: {}
  100. checkpoint:
  101. dir: outputs/experiments/optimized/BUS-BRA
  102. save: true
  103. save_last: true
  104. monitor: dice
  105. monitor_mode: max
  106. resume: null
  107. resume_strict: true
  108. resume_training: true
  109. logging:
  110. log_interval: 10
  111. print_training_setup: true
  112. use_swanlab: true
  113. project: X_SSL_Net
  114. experiment_name: xnet_sup_bus_bra_opt
  115. swanlab_mode: cloud
  116. swanlab_logdir: swanlog