Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why logits is the feature? #8

Open
Amitayus opened this issue Dec 14, 2017 · 7 comments
Open

Why logits is the feature? #8

Amitayus opened this issue Dec 14, 2017 · 7 comments

Comments

@Amitayus
Copy link

Thank you for your sharing. In your Usage introduction, Logits layer of Inception-v4 is exacted as feature using example_feat_extract.py. I wonder that why the logits is the feature be extracted?

@alexandercameronh
Copy link

@Amitayus I believe that the feature vector that you call to be extracted depends on the ultimate usage of the feature vector. In this case, the Logits feature vector is effectively a probability distribution among the 1000 possible objects that can be extracted from the image

@tomrunia How would one extract a feature vector from somewhere earlier in the network? For example, the final convolutional layer?

@tomrunia
Copy link
Owner

@alexandercameronh You can just set the command line parameter --layer_names where the layer names are comma separated. Of course the layer names need to correspond to your network architecture. Your can use the feature extractor's method print_network_summary() to find out the layer names.

@Amitayus
Copy link
Author

@alexandercameronh To my understand, if the Logits output is regarded as feature vector, then there is no need for the existing of classifier. Feature vector should be independent of the specific classification tasks.

@bkwwangjie
Copy link

@tomrunia Hello,I want to use the eigenvector of the image in conjunction with the text, which layers should I extract?

@alexandercameronh
Copy link

@bkwwangjie did you figure out the answer to this? If so, which layer(s) did you extract?

@Amitayus
Copy link
Author

Amitayus commented Jan 5, 2018

@alexandercameronh I remove the fully connected layer (regrading as classifier) and extract vector of end_points['PreLogitsFlatten'] as feature of the input.

@zengsn
Copy link

zengsn commented Mar 19, 2018

@Amitayus Could please show the code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants