For image batch classification I've used code from this question Modifying the Caffe C++ prediction code for multiple inputs . But I noticed function that splits channels of image for some reason.
I guess it works for usual CNN architecture, but does it work for Siamese architecture? I guess not, since in C++ classification it doesn't work correctly.
Can someone explain, how should I change code for siamese architecture(that splits image by channels and gives those channels to different layers, that's the point), or at least how memory storage for input works, to figure it out myself?
Blob<float>* input_layer = net_->input_blobs()[0];