generative-evaluation-prdc
generative-evaluation-prdc copied to clipboard
Feature extraction to obtain vectors
Dear Sir, it seems that in your work there aren't tools for getting the vectors of features from images. Thus, have you got any advice for me to obtain these features vectors from my real-fake images dataset? Thank you so much!
Hi, I think that it is up to you because you can use any feature extractors for utilizing this metric.
Commonly, people use InceptionV3(Tensorflow or Pytorch pretrained model) or Vgg16 ImageNet pretrained classifiers for extracting feature vectors and using perceptual evaluation metrics. Although these authors used vgg in their paper, I have used InceptionV3 and this metric has performed well either. I think that people usually extract features from (2048dim) averge pooling layer of InceptionV3 or (4096 dim) second fully connected layer of VGG16.
You would better load your real and fake images, and then preprocess for extracting feature vectors from these classifiers. You can also manage to obtain some reference source code line such as FID about getting feature vectors.
Thank you so much, you were so kind. Have a good day!
On Sat, 4 Jun 2022, 11:31 YooJin Jang, @.***> wrote:
Hi, I think that it is up to you because you can use any feature extractors for utilizing this metric.
Commonly, people use InceptionV3(Tensorflow or Pytorch pretrained model) or Vgg16 ImageNet pretrained classifiers for extracting feature vectors and using perceptual evaluation metrics. Although they used vgg in their paper, I have used InceptionV3 and this metric has performed well either. I think that people usually extract features from (2048dim) averge pooling layer of InceptionV3 or (4096 dim) second fully connected layer of VGG16.
You would better load your real and fake images, and then preprocess for extracting feature vectors from these classifiers. You can also manage to obtain some reference source code line such as FID https://github.com/mseitzer/pytorch-fid/blob/master/src/pytorch_fid/fid_score.py about getting feature vectors.
— Reply to this email directly, view it on GitHub https://github.com/clovaai/generative-evaluation-prdc/issues/9#issuecomment-1146577650, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOE7GTWTNQCG6BQPDNC473VNMO6HANCNFSM5XIPMU5A . You are receiving this because you authored the thread.Message ID: @.***>