Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent output with "correct" classification #2339

Open
neo-yuan-fit opened this issue Jun 8, 2024 · 0 comments
Open

Inconsistent output with "correct" classification #2339

neo-yuan-fit opened this issue Jun 8, 2024 · 0 comments
Labels
question An issue, pull request, or discussion needs more information

Comments

@neo-yuan-fit
Copy link

Ask a Question

Question

Hi! Thanks for the work. I was following tutorial here to successfully convert the fp32-tflite model into onnx with opset 13.

When i run the model with onnx and tf, the prediction looks correct as shown here.
tf
onnx

However, if I use the np.testing.assert_allclose as suggested here, I get a mismatch rate of 71% on the same image input. Furthermore, if I use a randomly generated matrix input with the same shape, the mismatch will increase into 100%.

I would like to ask why this is happening and if there is any quantitative way to determine if the model conversion is successful.

Thank you!

@neo-yuan-fit neo-yuan-fit added the question An issue, pull request, or discussion needs more information label Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question An issue, pull request, or discussion needs more information
Projects
None yet
Development

No branches or pull requests

1 participant