Commit c5d1b2d
committed
Drop vendored nnunetv2; depend on upstream pip package (v1.3.0)
BREAKING CHANGE: distillation/nnunetv2/ is removed and replaced with a
pip dependency on nnunetv2>=2.5,<3.0. Users must reinstall to pick up
the new layout.
What changed:
- Removed entire distillation/nnunetv2/ vendored tree (~190 files, 1.7 MB).
The only file we had authored was nnUNetDistillationTrainer.py; the rest
was a stale snapshot of upstream nnUNet that the repo had to manually
keep in sync.
- Moved the trainer to distillation/nnunet_distillation_trainer.py at the
top of the package so it sits next to the entry-point scripts.
- Updated the four entry-point scripts to import the trainer from its new
location and dropped the sys.path.insert hack that forced the vendored
copy to win over pip.
- setup.py: pin nnunetv2>=2.5,<3.0, list nnunet_distillation_trainer in
py_modules, bump version 1.2.1 -> 1.3.0.
Compatibility fix surfaced by the refactor:
- nnunetv2 2.7 renamed nnUNetLogger to LocalLogger. Updated the trainer's
import and instantiation accordingly. (The vendored copy hid this drift.)
Verified locally:
- python -m py_compile passes on all touched files.
- After `pip install -e .` in distillation/, the four console entry points
(nnUNetv2_distillation_train, nnUNetv2_resenc_distillation_train,
nnUNetv2_distillation_export_onnx, nnUNetv2_resenc_distillation_export_onnx)
all run --help successfully against pip-installed nnunetv2 2.7.0.
- nnunet_distillation_trainer exposes nnUNetDistillationTrainer,
nnUNetDistillationTrainerDA5, LiteNNUNetStudent, LiteResEncStudent.
Not yet verified (requires GPU + dataset):
- An end-to-end training step. The autocast/Logger changes need a real
training run before this is shipped.1 parent 3b5aa8e commit c5d1b2d
203 files changed
Lines changed: 17 additions & 18465 deletions
File tree
- distillation
- nnunetv2
- batch_running
- benchmarking
- release_trainings
- nnunetv2_v1
- dataset_conversion
- datasets_for_integration_tests
- ensembling
- evaluation
- experiment_planning
- dataset_fingerprint
- experiment_planners
- resampling
- residual_unets
- plans_for_pretraining
- imageio
- inference
- model_sharing
- postprocessing
- preprocessing
- cropping
- normalization
- preprocessors
- resampling
- run
- tests
- example_data
- integration_tests
- training
- data_augmentation
- custom_transforms
- dataloading
- logging
- loss
- lr_scheduler
- nnUNetTrainer
- primus
- variants
- benchmarking
- competitions
- data_augmentation
- loss
- lr_schedule
- network_architecture
- optimizer
- sampling
- training_length
- utilities
- label_handling
- plans_handling
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 28 | | |
34 | 29 | | |
35 | | - | |
| 30 | + | |
| 31 | + | |
36 | 32 | | |
37 | 33 | | |
38 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 31 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 32 | | |
41 | 33 | | |
| 34 | + | |
| 35 | + | |
42 | 36 | | |
43 | 37 | | |
44 | 38 | | |
| |||
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 39 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 40 | | |
49 | 41 | | |
50 | 42 | | |
| 43 | + | |
| 44 | + | |
51 | 45 | | |
52 | 46 | | |
53 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 31 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 32 | | |
41 | 33 | | |
| 34 | + | |
| 35 | + | |
42 | 36 | | |
43 | 37 | | |
44 | 38 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | | - | |
| 447 | + | |
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
| |||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Lines changed: 0 additions & 41 deletions
This file was deleted.
Lines changed: 0 additions & 70 deletions
This file was deleted.
0 commit comments