Commit 8f434a8
committed
Phase 2.2-2.3: Remove dummy validation dataset and make deep supervision configurable
Changes:
1. Phase 2.2: Remove dummy validation dataset workaround (lit_data.py)
- Replaced DummyDataset with proper warning when validation fails
- More honest error handling instead of masking configuration issues
2. Phase 2.3: Make hardcoded deep supervision values configurable (hydra_config.py, lit_model.py)
- Added ModelConfig fields:
* deep_supervision_weights (default: [1.0, 0.5, 0.25, 0.125, 0.0625])
* deep_supervision_clamp_min (default: -20.0)
* deep_supervision_clamp_max (default: 20.0)
- Updated lit_model.py to use configurable values in 3 locations:
* Multi-task output clamping
* Deep supervision output clamping
* Deep supervision scale weights with validation
Benefits:
- Users can now customize deep supervision behavior without code changes
- Removes technical debt items #2 and #4 from REFACTORING_PLAN.md
- Better error handling for missing validation data1 parent 0946eaa commit 8f434a8
File tree
3 files changed
+32
-25
lines changed- connectomics
- config
- lightning
3 files changed
+32
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
185 | 188 | | |
186 | 189 | | |
187 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | 183 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
204 | 191 | | |
| 192 | + | |
205 | 193 | | |
206 | 194 | | |
207 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1114 | 1114 | | |
1115 | 1115 | | |
1116 | 1116 | | |
1117 | | - | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
1118 | 1120 | | |
1119 | 1121 | | |
1120 | 1122 | | |
| |||
1142 | 1144 | | |
1143 | 1145 | | |
1144 | 1146 | | |
1145 | | - | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
1146 | 1150 | | |
1147 | 1151 | | |
1148 | 1152 | | |
| |||
1191 | 1195 | | |
1192 | 1196 | | |
1193 | 1197 | | |
1194 | | - | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
1195 | 1211 | | |
1196 | 1212 | | |
1197 | 1213 | | |
| |||
0 commit comments