rcmalli / keras-vggface

VGGFace implementation with Keras Framework
MIT License
928 stars 416 forks source link

Extracting fc7 layers, Why most of the points are 0? #57

Open ravising-h opened 4 years ago

ravising-h commented 4 years ago
from keras_vggface.vggface import VGGFace
vgg_features = VGGFace(include_top=True, input_shape=(224, 224, 3))
vgg_features.layers.pop()
vgg_features.layers.pop()
vgg_features.outputs = [vgg_features.layers[-1].output]
vgg_features.layers[-1].outbound_nodes = []

I was extracting 4096 Features through the code. Why the Result array has lot of zeroes in it ?