how to do Backpropagation with opencv..

asked 2018-03-28 21:15:05 -0600

Shivanshu gravatar image

TARGET: I am using opencv 2.4.I am new to neural network and recently learned about backpropagation training algorithm.I want to do the same in opencv.

PROBLEM:

  1. All I saw in opencv was MLP. My question is how can I implement backprop. algorithm over that??

  2. MLP and neural net are same??or opencv don't have any sol. regarding this.

  3. I am also confused about use of neural net trained using backprop. algorithm in computer vision.What stuff I can do with neural net in machine vision as a starter.which is not so complex because I am a starter.Thank you.

edit retag flag offensive close merge delete

Comments

it's unclear, what you're trying to achieve here, but in any case, you should not use outdated opencv2.4 for this.

  • if you have a machinelearning problem to solve, you should at least update to opencv3, so you don't have to use the awkward c-api interfaces in 2.4

  • if it's for educational purpose, you should implement your own algorithm (at least once in your life !).


in the end it's similar to:

// forward:
    y = W*x
// backward:
   grad = (truth-y).t() * W
   W -= learnrate * grad

also look here, please

berak gravatar imageberak ( 2018-03-29 03:08:14 -0600 )edit

@berak I know I should shift to opecv 3.0 but stuck for MSVS 2015 or 2016...any torrent from where I can download this...

Shivanshu gravatar imageShivanshu ( 2018-03-29 10:58:56 -0600 )edit

idk about torrents for this, but you can either try one of those

or (if you really want ot get involved there):

git clone https://github.com/opencv/opencv
berak gravatar imageberak ( 2018-03-29 11:07:48 -0600 )edit