Tools to convert ONNX files (NCHW) to TensorFlow format (NHWC)
Authors/Creators
Description
Add
-inimc/--input_names_to_interrupt_model_conversionoption. By specifying ONNX input or output names, only the middle part of the model can be converted. This is useful when you want to see what output is obtained in what part of the model after conversion, or when debugging the model conversion operation itself.For example, take a model with multiple inputs and multiple outputs as shown in the figure below to try a partial transformation.
To convert by specifying only the input name to start the conversion
wget https://github.com/PINTO0309/onnx2tf/releases/download/1.25.0/cf_fus.onnx onnx2tf -i cf_fus.onnx -inimc 448 -coionTo convert by specifying only the output name to end the conversion
wget https://github.com/PINTO0309/onnx2tf/releases/download/1.25.0/cf_fus.onnx onnx2tf -i cf_fus.onnx -onimc dep_sec -coionTo perform a conversion by specifying the input name to start the conversion and the output name to end the conversion
wget https://github.com/PINTO0309/onnx2tf/releases/download/1.25.0/cf_fus.onnx onnx2tf -i cf_fus.onnx -inimc 448 -onimc velocity -coion
What's Changed
- Add
-inimcoption by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/667
Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.25.0...1.25.1
Notes
Files
PINTO0309/onnx2tf-1.25.1.zip
Files
(650.0 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:838d83b77d6e4b29f58a26860a4c45cd
|
650.0 kB | Preview Download |
Additional details
Related works
- Is supplement to
- Software: https://github.com/PINTO0309/onnx2tf/tree/1.25.1 (URL)