Skip to content
Discussion options

You must be logged in to vote

I have discovered the problem. There was 2 problems, The first problem was that the image pixels need to be normalised to values between 0 and 1 by /255f.

The other problem was that the confidences don't need to be scaled with sigmoid. As soon as I took that out of the C# program started working the same as the Python program.

the final C# code was:

        private void cmdAnalyse_Click(object sender, EventArgs e)
        {
            // begin analysis
            if (this.txtONNXFile.Text == "")
            {
                MessageBox.Show("Please select an ONNX file");
                return;
            }

            if (this.originalImage != null)
            {
                this…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by karlhm76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant