You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,12 +130,14 @@ You find an end-to-end tutorial for ssd-mobilenet [here](tutorials/ConvertingSSD
130
130
python -m tf2onnx.convert
131
131
--saved-model SOURCE_SAVED_MODEL_PATH |
132
132
--checkpoint SOURCE_CHECKPOINT_METAFILE_PATH |
133
+
--tflite SOURCE_TFLITE_PATH |
133
134
--input | --graphdef SOURCE_GRAPHDEF_PB
134
135
--output TARGET_ONNX_MODEL
135
136
[--inputs GRAPH_INPUTS]
136
137
[--outputs GRAPH_OUTPUS]
137
138
[--inputs-as-nchw inputs_provided_as_nchw]
138
139
[--opset OPSET]
140
+
[--dequantize]
139
141
[--tag TAG]
140
142
[--signature_def SIGNATURE_DEF]
141
143
[--concrete_function CONCRETE_FUNCTION]
@@ -158,6 +160,12 @@ TensorFlow model as saved_model. We expect the path to the saved_model directory
158
160
159
161
TensorFlow model as checkpoint. We expect the path to the .meta file.
160
162
163
+
#### --tflite
164
+
165
+
(This is experimental)
166
+
167
+
Convert a tflite model by providing a path to the .tflite file. Inputs/outputs do not need to be specified.
168
+
161
169
#### --input or --graphdef
162
170
163
171
TensorFlow model as graphdef file.
@@ -182,6 +190,12 @@ ONNX requires default values for graph inputs to be constant, while Tensorflow's
182
190
183
191
By default we use the opset 8 to generate the graph. By specifying ```--opset``` the user can override the default to generate a graph with the desired opset. For example ```--opset 5``` would create a onnx graph that uses only ops available in opset 5. Because older opsets have in most cases fewer ops, some models might not convert on a older opset.
184
192
193
+
#### --dequantize
194
+
195
+
(This is experimental, only supported for tflite)
196
+
197
+
Produces a float32 model from a quantized tflite model. Detects ReLU and ReLU6 ops from quantization bounds.
198
+
185
199
#### --tag
186
200
187
201
Only valid with parameter `--saved_model`. Specifies the tag in the saved_model to be used. Typical value is 'serve'.
0 commit comments