Skip to content

Commit 25dd861

Browse files
committed
Update readme (pytorch version recommendation)
1 parent f25ef5f commit 25dd861

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ you can use darknet2pytorch to convert it yourself, or download my converted mod
119119
120120
- **This script is to convert the official pretrained darknet model into ONNX**
121121
122-
- **Pytorch version Recommended: 1.4.0 for TensorRT 7.0, 1.5.0 or higher for TensorRT 7.1**
122+
- **Pytorch version Recommended:**
123+
124+
- Pytorch 1.4.0 for TensorRT 7.0 and higher
125+
- Pytorch 1.5.0 and 1.6.0 for TensorRT 7.1.2 and higher
123126
124127
- **Install onnxruntime**
125128
@@ -142,7 +145,10 @@ you can use darknet2pytorch to convert it yourself, or download my converted mod
142145
143146
- **You can convert your trained pytorch model into ONNX using this script**
144147
145-
- **Pytorch version Recommended: 1.4.0 for TensorRT 7.0, 1.5.0 or higher for TensorRT 7.1**
148+
- **Pytorch version Recommended:**
149+
150+
- Pytorch 1.4.0 for TensorRT 7.0 and higher
151+
- Pytorch 1.5.0 and 1.6.0 for TensorRT 7.1.2 and higher
146152
147153
- **Install onnxruntime**
148154

tool/pytorch2onnx.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ def transform_to_onnx(cfgfile, weightfile, batch_size=1):
2323
export_params=True,
2424
opset_version=11,
2525
do_constant_folding=True,
26-
# input_names=['input'], output_names=['output_1', 'output_2', 'output_3'],
2726
dynamic_axes=None)
2827

2928
print('Onnx model exporting done')

0 commit comments

Comments
 (0)