Commit edc76b8
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 c5d1b2d commit edc76b8
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 | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
226 | 242 | | |
227 | 243 | | |
228 | 244 | | |
| |||
0 commit comments