us_exp_sup_busi_ablation.yaml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. trainer:
  2. name: supervised_segmentation
  3. train:
  4. seed: 42
  5. deterministic: false
  6. epochs: 200
  7. batch_size: 4
  8. val_batch_size: 4
  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: 40
  38. early_stopping_min_delta: 0.0
  39. metrics:
  40. task_mode: binary
  41. metrics:
  42. - name: dice
  43. - name: iou
  44. dataset:
  45. dataset_name: BUSI
  46. root: data/BUSI
  47. split: train
  48. val_split: val
  49. image_size: [256, 256]
  50. in_channels: 3
  51. num_classes: 1
  52. model:
  53. model_name: swinv2_tiny_patch4_window8_256
  54. load_weights: false
  55. decoder_channels: [384, 192, 96, 96]
  56. use_multiscale_features: true
  57. include_patch_embed: true
  58. optimizer:
  59. name: adamw
  60. lr: 1.0e-4
  61. weight_decay: 0.05
  62. scheduler:
  63. name: cosine
  64. warmup:
  65. name: linear
  66. params:
  67. start_factor: 0.1
  68. total_iters: 10
  69. params:
  70. T_max: 190
  71. eta_min: 1.0e-6
  72. augmentation:
  73. train:
  74. random_flip: true
  75. random_rotate_90: true
  76. random_brightness_contrast: true
  77. brightness_limit: 0.15
  78. contrast_limit: 0.15
  79. random_gaussian_noise: true
  80. gaussian_noise_std: 0.03
  81. val: {}
  82. checkpoint:
  83. dir: outputs/experiments/supervised/BUSI_ablation
  84. save: true
  85. save_last: true
  86. monitor: dice
  87. monitor_mode: max
  88. resume: null
  89. resume_strict: true
  90. resume_training: true
  91. logging:
  92. log_interval: 10
  93. print_training_setup: true
  94. use_swanlab: true
  95. project: X_SSL_Net
  96. experiment_name: sup_busi_ablation
  97. swanlab_mode: null