Solved by JuanFMontesinos in post #6 
              
              
                You have to understand that neural networks are trained to perform a task. With a non-trained network you cannot measure disparity. 
If you would have, for example, a classifier, then you can compute a loss which measure the difference between two image in terms of how likely are they to belong to t…