serengil / tensorflow-101

TensorFlow 101: Introduction to Deep Learning

Home Page:https://www.youtube.com/watch?v=YjYIMs5ZOfc&list=PLsS_1RYmYQQGxpKV44jsxXNgjEpRoW61w&index=2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

praveenkumarchandaliya opened this issue · comments

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,:]

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