TF_FeatureExtraction icon indicating copy to clipboard operation
TF_FeatureExtraction copied to clipboard

is it possiple to use this code to extract the feature with my own trained model

Open jren2017 opened this issue 8 years ago • 5 comments

I trained a model on my own dataset, is it possible to use this code to extract the feature?

jren2017 avatar Oct 02 '17 21:10 jren2017

HI @jren2017, It is possible but will require a lot of changes and even will require you to put your model source code inside slim and link it everwhere in the code carefully, I have not tried that but I hope it should work.

Instead I would sugest you to go through this script from @davidsandberg https://github.com/davidsandberg/facenet/blob/master/contributed/export_embeddings.py, just modify it according to your needs, it will work.

Ps: thanks to @davidsandberg

Hope it helps. Regards, Lucky Srivastava

Lucky94 avatar Nov 22 '17 10:11 Lucky94

Hello, I would like to ask if I use the data set in my own, I finally extract the matrix to be saved to the txt file instead of HDF5 file, the extraction format is: the name of the file in the file + space + feature matrix, how do I write Code? Thank you~

bkwwangjie avatar Dec 21 '17 10:12 bkwwangjie

@tomrunia Look forward to your reply to me。

bkwwangjie avatar Dec 21 '17 10:12 bkwwangjie

i got this error how to resolve it?

File "E:\TF_FeatureExtraction-master\feature_extractor\feature_extractor.py", line 20, in from nets import nets_factory ModuleNotFoundError: No module named 'nets'

saira05 avatar Jun 23 '18 15:06 saira05

@Saira05 - you probably forgot to add /models/research/slim to you PYTHONPATH, see README setup 2nd step https://github.com/tomrunia/TF_FeatureExtraction#setup

hannarud avatar Sep 06 '18 13:09 hannarud