Extracting features from images - Triplet Model

Hi,

I’m training a neural network model in triplet format, where I have three inputs: an anchor image and two other images, one positive and one negative in relation to the anchor image, indicating similarity.

I have the following difficulty: my experiments consist of extracting features for each image in the test dataset and using these features for the task of image retrieval. I’m saving the trained model, but I’m not able to load to extract the features of each image because the model is trained for a triplet format input. Some idea?