Skip to content

Commit ab307b2

Browse files
committed
Update ORT export instructions
1 parent d182d42 commit ab307b2

2 files changed

Lines changed: 7 additions & 10 deletions

File tree

docs/onnx.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
## Convert PyTorch model to ONNX and ORT
44

55
Convert Demucs PyTorch model to ONNX:
6+
7+
```python
8+
python ./scripts/convert-pth-to-onnx.py ./onnx-models
69
```
7-
$ python ./scripts/convert-pth-to-onnx.py ./scripts/demucs-onnx
8-
```
910

10-
Then, convert ONNX to ORT:
11+
Optionally, convert ONNX model to ORT:
12+
13+
```python
14+
python -m onnxruntime.tools.convert_onnx_models_to_ort ./onnx-models --enable_type_reduction
1115
```
12-
$ ./scripts/convert-model-to-ort.sh
13-
```

scripts/convert-model-to-ort.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)