How to add hand-crafted features as an input to a CNN model in MATLAB

I have extracted hand-crafted features for a face image dataset and now I want to feed these feature vectors to a CNN model, so as to improve my image retrieval accuracy. Please guide me in this regard. Thank you.

7 Comments

Are you trying to use the hand-crafted features instead of images or in addition to images as inputs to the CNN?
Yes, I want to use them in addition to images as input to the CNN, to improve my retrieval rate.
Currently I'm try to do so through autoencoders, but struggling with that. Can you assist?
Do you have them as image data or in another form?
I have in the form of 1-dimensional Array of type double.
do you have specific network architecture for your problem? because generally adding this extra feature to network has a lot of ambiguities. for example in which level of information (layer) you want to input these data to network?
I am using a pre-trained model Vgg-face

Sign in to comment.

 Accepted Answer

Hi,
This example shows how to train a model using image and feature data, Train Network on Image and Feature Data.
Is this what you were looking for?

5 Comments

This is helpful though, but I am using a pre-trained network vgg-face and I want feature vectors only to input the network.
Are the features you're inputting the same as those the network was trained with? Or you want to add them in?
Not same. I have extracted those features from a hand-crafted technique and now I want to feed them as an input to the neural network so that I can use the flatenned output of the fully connected layer to retreive images.
Can you suggest me best tool to reconstruct images from the feature vectors?
Has the network already been trained? If it requires re-training, why does the example above not suffice?

Sign in to comment.

More Answers (0)

Products

Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!