akshaybahadur21 / Facial-Recognition-using-Facenet

A simple implementation of facial recognition using facenets for humans 🧔 🔍
MIT License
278 stars 143 forks source link

Code breaking in "Rec-feat.py" and "Train-inception.py" #10

Open muskhangit opened 6 years ago

muskhangit commented 6 years ago

1.While running Rec-feat.py, Python.exe stops working abnormally. It breaks at following line while debugging

FRmodel = load_model('face-rec_Google.h5')

2.While running Train-inception.py, getting following error:

---------------------------------------ERROR------------------------------------------------

File "C:\Anaconda3\lib\site-packages\keras\layers\merge.py", line 354, in build 'Got inputs shapes: %s' % (input_shape))

ValueError: A Concatenate layer requires inputs with matching shapes except for the concat axis. Got inputs shapes: [(None, 128, 12, 192), (None, 32, 12, 192), (None, 32, 12, 102), (None, 64, 12, 192)]

Code where its breaking. file: merge.py

def concatenate(inputs, axis=-1, **kwargs): """Functional interface to the Concatenate layer.

# Arguments
    inputs: A list of input tensors (at least 2).
    axis: Concatenation axis.
    **kwargs: Standard layer keyword arguments.

# Returns
    A tensor, the concatenation of the inputs alongside axis `axis`.
"""
return Concatenate(axis=axis, **kwargs)(inputs)

hs008 commented 5 years ago

I am facing the exact same problem. If you have already found the solution,please let me know. TIA