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

What is the use of vgg_face_descriptor.predict(real_images)**[0,:]** #10

Closed
praveenkumarchandaliya opened this issue Oct 5, 2019 · 1 comment

Comments

@praveenkumarchandaliya
Copy link

img1_representation = vgg_face_descriptor.predict(real_images)[0,:] what is the use of [0,:] meaning, can you explain what is use of this[0,:]

@serengil
Copy link
Owner

serengil commented Oct 5, 2019

predict function append one dummy dimension. VGG normally returns 2622 dimensional vector as output but predict function will return (1, 2622). You should print the shape of that line to understand.

vgg_face_descriptor.predict(real_images).shape

@serengil serengil closed this as completed Oct 5, 2019
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

2 participants