2016-12-12 06:02:37 -0600 | received badge | ● Editor (source) |
2016-12-09 05:11:08 -0600 | asked a question | ANN_MLP segmentation fault on predict() if not directly preceeded by train() Hey, i am using c++ OpenCV 3.1 on Ubuntu Xenial. I think i found a bug in OpenCV but want to reassure that I am not missing something. I have code that first trains my ANN_MLP with training data in one method. Then, on user input a new sample is generated and forwarded to my predict() wrapping method. This is how a snippet looks training works well here! Now when I go to predict within another method of the same class and I take a row from the trained set I get a segmentation fault except I do it this way As you see I have to set the activation function again and train again. This is really annoying. It may be somewhat related to the following bug: http://code.opencv.org/issues/4251 Because when I run the program with gdb I get a message containing related to an error. Now I think that ANN_MLP internally misses to internally store the activation function as well as the trained data (or parts of this). What do you think? Here is the gdb bt output. Sadly, i cannot compile OpenCV in debug mode. |