Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 4615

Why do we get different predictions when using java and python(dnn)?

$
0
0
When using the python language at the output of a neural network, I get an array consisting of numbers from 0 to 5. For example: ...[3 3 3 ... 1 1 1] [3 3 3 ... 1 1 1] [3 3 3 ... 1 1 1]... When using the same model in java, I get the following: -26.287221908569336, -14.588539123535156, -7.386473655700684, 1.4765703678131104, 15.550891876220703. Initially, the data comes in a 4d array from which I get values ​​using the reshape function(see [this](http://answers.opencv.org/question/175676/javaandroid-access-4-dim-mat-planes/)).

Viewing all articles
Browse latest Browse all 4615


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>