Is it possible to forward the output of a deep-learning network to another network with caffe / pycaffe?

55 views Asked by At

I am using caffe, or more likely pycaffe to train and create my network. I am having a dataset with 5 labels at the end. I had the idea to create one network for each label that can just simply say the score for one class. After having then trained 5 networks I want to compare the outputs of the networks and which one has the highest score.

Sadly I do only know how to create one network , but not how to let them interact and moreover how to do something like a max function at the end. I add a picture to describe what I want to do.

Moreover, I do not know if this would have a better outcome than just a normal deep neuronal networkenter image description here.

1

There are 1 answers

5
Prune On BEST ANSWER

I don't see what you expect to have as the input to this "max" function. Even if you use some sort of is / is not boundary training, your approach appears to be an inferior version of the softmax layer available in all popular frameworks.

Yes, you can build a multi-channel model, train each channel with a different data set, and then accept the most confident prediction -- but the result will take longer and be less accurate than a cooperative training pass. Your five channels wind up negotiating their boundaries after they've made other parametric assumptions.

Feed a single model all the information available from the outset; you'll get faster convergence and more accurate classification.