There is a newer version of the record available.

Published July 13, 2024 | Version 1.25.1
Software Open

Tools to convert ONNX files (NCHW) to TensorFlow format (NHWC)

Authors/Creators

Description

  • Add -inimc / --input_names_to_interrupt_model_conversion option. 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 -coion
      

    • To 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 -coion
      

    • To 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 -inimc option 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

If you use onnx2tf in your research, please cite it using these metadata.

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