|
| 1 | +_base_: bases/rsunet.yaml |
| 2 | +experiment_name: rsunet_cremi_synapse_cleft |
| 3 | +description: CREMI synapse cleft detection (binary semantic segmentation with RSUNet, anisotropic) |
| 4 | +system: |
| 5 | + training: |
| 6 | + batch_size: 2 |
| 7 | + inference: |
| 8 | + batch_size: 1 |
| 9 | + seed: 42 |
| 10 | +model: |
| 11 | + out_channels: 1 |
| 12 | + filters: |
| 13 | + - 32 |
| 14 | + - 64 |
| 15 | + - 96 |
| 16 | + - 128 |
| 17 | + - 160 |
| 18 | + rsunet_norm: batch |
| 19 | + rsunet_activation: elu |
| 20 | + rsunet_num_groups: 8 |
| 21 | + rsunet_down_factors: |
| 22 | + - - 1 |
| 23 | + - 2 |
| 24 | + - 2 |
| 25 | + - - 1 |
| 26 | + - 2 |
| 27 | + - 2 |
| 28 | + - - 1 |
| 29 | + - 2 |
| 30 | + - 2 |
| 31 | + - - 1 |
| 32 | + - 2 |
| 33 | + - 2 |
| 34 | + rsunet_depth_2d: 1 |
| 35 | + rsunet_kernel_2d: |
| 36 | + - 1 |
| 37 | + - 3 |
| 38 | + - 3 |
| 39 | + deep_supervision: false |
| 40 | + loss_functions: |
| 41 | + - WeightedBCEWithLogitsLoss |
| 42 | + - DiceLoss |
| 43 | + loss_weights: |
| 44 | + - 1.0 |
| 45 | + - 1.0 |
| 46 | + loss_kwargs: |
| 47 | + - reduction: mean |
| 48 | + - sigmoid: true |
| 49 | + smooth_nr: 1e-05 |
| 50 | + smooth_dr: 1e-05 |
| 51 | +data: |
| 52 | + train_image: |
| 53 | + - datasets/corrected/im_A.h5 |
| 54 | + - datasets/corrected/im_B.h5 |
| 55 | + - datasets/corrected/im_C.h5 |
| 56 | + train_label: |
| 57 | + - datasets/corrected/syn_A.h5 |
| 58 | + - datasets/corrected/syn_B.h5 |
| 59 | + - datasets/corrected/syn_C.h5 |
| 60 | + patch_size: |
| 61 | + - 18 |
| 62 | + - 256 |
| 63 | + - 256 |
| 64 | + pad_size: |
| 65 | + - 0 |
| 66 | + - 32 |
| 67 | + - 32 |
| 68 | + pad_mode: reflect |
| 69 | + iter_num_per_epoch: 1280 |
| 70 | + use_preloaded_cache: true |
| 71 | + reject_sampling: |
| 72 | + size_thres: 1000 |
| 73 | + p: 0.95 |
| 74 | + image_transform: |
| 75 | + clip_percentile_low: 0.0 |
| 76 | + clip_percentile_high: 1.0 |
| 77 | + augmentation: |
| 78 | + preset: some |
| 79 | + flip: |
| 80 | + enabled: true |
| 81 | + prob: 0.5 |
| 82 | + spatial_axis: |
| 83 | + - 1 |
| 84 | + - 2 |
| 85 | + rotate: |
| 86 | + enabled: true |
| 87 | + prob: 0.5 |
| 88 | + max_angle: 90.0 |
| 89 | + elastic: |
| 90 | + enabled: true |
| 91 | + prob: 0.3 |
| 92 | + sigma_range: |
| 93 | + - 5.0 |
| 94 | + - 8.0 |
| 95 | + magnitude_range: |
| 96 | + - 50.0 |
| 97 | + - 150.0 |
| 98 | + intensity: |
| 99 | + enabled: true |
| 100 | + gaussian_noise_prob: 0.3 |
| 101 | + gaussian_noise_std: 0.05 |
| 102 | + shift_intensity_prob: 0.3 |
| 103 | + shift_intensity_offset: 0.1 |
| 104 | + contrast_prob: 0.3 |
| 105 | + contrast_range: |
| 106 | + - 0.7 |
| 107 | + - 1.4 |
| 108 | + misalignment: |
| 109 | + enabled: true |
| 110 | + prob: 0.5 |
| 111 | + displacement: 16 |
| 112 | + rotate_ratio: 0.0 |
| 113 | + missing_section: |
| 114 | + enabled: true |
| 115 | + prob: 0.3 |
| 116 | + num_sections: 2 |
| 117 | + motion_blur: |
| 118 | + enabled: true |
| 119 | + prob: 0.3 |
| 120 | + sections: 2 |
| 121 | + kernel_size: 11 |
| 122 | + cut_noise: |
| 123 | + enabled: false |
| 124 | + cut_blur: |
| 125 | + enabled: false |
| 126 | + missing_parts: |
| 127 | + enabled: false |
| 128 | +optimization: |
| 129 | + max_steps: 150000 |
| 130 | + gradient_clip_val: 1.0 |
| 131 | + accumulate_grad_batches: 1 |
| 132 | + precision: bf16-mixed |
| 133 | + deterministic: false |
| 134 | + benchmark: true |
| 135 | + optimizer: |
| 136 | + name: AdamW |
| 137 | + lr: 0.001 |
| 138 | + eps: 1.0e-08 |
| 139 | + betas: |
| 140 | + - 0.9 |
| 141 | + - 0.999 |
| 142 | + weight_decay: 0.01 |
| 143 | + scheduler: |
| 144 | + name: CosineAnnealingLR |
| 145 | + t_max: 150000 |
| 146 | + min_lr: 1.0e-05 |
| 147 | + interval: step |
| 148 | + frequency: 1 |
| 149 | + ema: |
| 150 | + enabled: true |
| 151 | + decay: 0.999 |
| 152 | + warmup_steps: 500 |
| 153 | + validate_with_ema: true |
| 154 | +monitor: |
| 155 | + logging: |
| 156 | + scalar: |
| 157 | + loss: |
| 158 | + - train_loss_total_epoch |
| 159 | + loss_every_n_steps: 10 |
| 160 | + val_check_interval: 1.0 |
| 161 | + images: |
| 162 | + max_images: 8 |
| 163 | + num_slices: 9 |
| 164 | + log_every_n_epochs: 1 |
| 165 | + checkpoint: |
| 166 | + monitor: train_loss_total_epoch |
| 167 | + save_top_k: 3 |
| 168 | + save_every_n_epochs: 10 |
| 169 | + dirpath: outputs/rsunet_cremi_synapse_cleft/checkpoints/ |
| 170 | + checkpoint_filename: epoch={epoch:03d}-step={step:07d}-loss={train_loss_total_epoch:.4f} |
| 171 | + early_stopping: |
| 172 | + enabled: false |
| 173 | +test: |
| 174 | + data: |
| 175 | + # For local evaluation (labels available): use training volumes |
| 176 | + test_image: |
| 177 | + - datasets/corrected/im_A.h5 |
| 178 | + - datasets/corrected/im_B.h5 |
| 179 | + - datasets/corrected/im_C.h5 |
| 180 | + test_label: |
| 181 | + - datasets/corrected/syn_A.h5 |
| 182 | + - datasets/corrected/syn_B.h5 |
| 183 | + - datasets/corrected/syn_C.h5 |
| 184 | + # For CREMI challenge submission (no labels): uncomment below, comment above |
| 185 | + # test_image: |
| 186 | + # - datasets/corrected/im_A+.h5 |
| 187 | + # - datasets/corrected/im_B+.h5 |
| 188 | + # - datasets/corrected/im_C+.h5 |
| 189 | + test_resolution: |
| 190 | + - 40 |
| 191 | + - 4 |
| 192 | + - 4 |
| 193 | + output_path: outputs/rsunet_cremi_synapse_cleft/results/ |
| 194 | + image_transform: |
| 195 | + normalize: "0-1" |
| 196 | + clip_percentile_low: 0.0 |
| 197 | + clip_percentile_high: 1.0 |
| 198 | + evaluation: |
| 199 | + enabled: true |
| 200 | + metrics: |
| 201 | + - cremi_distance |
| 202 | + - jaccard |
| 203 | +inference: |
| 204 | + sliding_window: |
| 205 | + window_size: |
| 206 | + - 18 |
| 207 | + - 256 |
| 208 | + - 256 |
| 209 | + sw_batch_size: 4 |
| 210 | + overlap: 0.5 |
| 211 | + blending: gaussian |
| 212 | + sigma_scale: 0.25 |
| 213 | + padding_mode: reflect |
| 214 | + test_time_augmentation: |
| 215 | + enabled: true |
| 216 | + flip_axes: all |
| 217 | + ensemble_mode: mean |
| 218 | + channel_activations: |
| 219 | + - - 0 |
| 220 | + - 1 |
| 221 | + - sigmoid |
| 222 | + select_channel: null |
| 223 | + save_prediction: |
| 224 | + enabled: true |
| 225 | + intensity_scale: -1 |
| 226 | + intensity_dtype: float32 |
| 227 | + output_formats: |
| 228 | + - h5 |
0 commit comments