Skip to content

Commit

Permalink
Merge pull request #307 from On-JungWoan/cind_readme
Browse files Browse the repository at this point in the history
Add additional information about the `-cind` option in the README.
  • Loading branch information
PINTO0309 committed Apr 11, 2023
2 parents ad8c3c9 + a6b1c31 commit 379a3ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ Perform error checking of ONNX output and TensorFlow output. Verify that the err

`-ois` an option to overwrite the input OP to a static size if it has undefined dimensions. `-cotof` option checks the accuracy of all OPs one by one. `-cotoa` is the error value of the threshold for determining an accuracy error. If there are undefined dimensions in the input OP, it is better to fix them to the static geometry to improve the accuracy of the accuracy measurement.

Also, you can use the `-cind` option to specify custom input for `-cotof`, instead of using the default dummy input. Otherwise, all input values will be set to 1. For more information about the `-cind` option, please refer to [here](#cli-parameter).

The `-cotof` option only compares the original ONNX and converted TensorFlow (Keras) models at Float32 precision, not at Float16 or INT8 precision.

```
Expand All @@ -371,6 +373,10 @@ $ onnx2tf -i mobilenetv2-12.onnx -ois input:1,3,224,224 -cotof -cotoa 1e-1
or
$ onnx2tf -i mobilenetv2-12.onnx -b 1 -cotof -cotoa 1e-1
or
$ onnx2tf -i mobilenetv2-12.onnx -cotof -cotoa 1e-1 -cind input /your/path/x.npy
```
![image](https://user-images.githubusercontent.com/33194443/216901668-5fdb1e38-8670-46a4-b4b9-8a774fa7545e.png)

Expand Down

0 comments on commit 379a3ee

Please sign in to comment.