Commit d22e479
committed
Document ONNX prerequisites and add [onnx] extras_require
torch>=2.6 changed its ONNX exporter to require onnxscript, so users
hitting the export scripts on a fresh install were getting
ModuleNotFoundError. This adds:
- setup.py: extras_require={'onnx': [onnx, onnxruntime, onnxscript, onnx-simplifier]}
so users can pip install nnunetv2_distillation[onnx].
- docs/Distillation.md: a Prerequisites callout before the ONNX export
section listing both the extras install and the manual pip command.1 parent 68d5850 commit d22e479
2 files changed
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
10 | 20 | | |
11 | 21 | | |
12 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
193 | 209 | | |
194 | 210 | | |
195 | 211 | | |
| |||
0 commit comments