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

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

Open
muskhangit opened this issue Sep 27, 2018 · 1 comment
Open

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

muskhangit opened this issue Sep 27, 2018 · 1 comment

Comments

@muskhangit
Copy link

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
Copy link

hs008 commented Oct 12, 2018

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

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