I'm new to Caffe framework and I want to create a siamese network.
My dataset has multiple images with eyes: x_left.jpg and x_right.jpg: left eye and right eye for person x and the train sample looks like:
__image__, __level__
15_left , 1
15_right , 2
16_left , 4
16_right , 4
Level indicates how advanced is the disease - diabetic retinopathy, so the level can be considered as a category from 0 to 5.
The two inputs are going to be two images, i.e. 15_left.jpg and 16_right.jpg. After training the siamese network, I want to use it as an extractor feature, i.e. Give it a picture and keep features on the penultimate layer.
My question is: how can I create the lmdb files to use siamese network?
Thank you!