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" #14

Open
mohan22 opened this issue Nov 16, 2018 · 0 comments
Open

Code breaking in "Rec-feat.py" #14

mohan22 opened this issue Nov 16, 2018 · 0 comments

Comments

@mohan22
Copy link

mohan22 commented Nov 16, 2018

Traceback (most recent call last):
File "rec-feat.py", line 13, in
FRmodel = load_model('face-rec_Google.h5')
File "/Users/venkatamohan.jakkula/anaconda3/lib/python3.7/site-packages/keras/engine/saving.py", line 419, in load_model
model = _deserialize_model(f, custom_objects, compile)
File "/Users/venkatamohan.jakkula/anaconda3/lib/python3.7/site-packages/keras/engine/saving.py", line 225, in _deserialize_model
model = model_from_config(model_config, custom_objects=custom_objects)
File "/Users/venkatamohan.jakkula/anaconda3/lib/python3.7/site-packages/keras/engine/saving.py", line 458, in model_from_config
return deserialize(config, custom_objects=custom_objects)
File "/Users/venkatamohan.jakkula/anaconda3/lib/python3.7/site-packages/keras/layers/init.py", line 55, in deserialize
printable_module_name='layer')
File "/Users/venkatamohan.jakkula/anaconda3/lib/python3.7/site-packages/keras/utils/generic_utils.py", line 145, in deserialize_keras_object
list(custom_objects.items())))
File "/Users/venkatamohan.jakkula/anaconda3/lib/python3.7/site-packages/keras/engine/network.py", line 1032, in from_config
process_node(layer, node_data)
File "/Users/venkatamohan.jakkula/anaconda3/lib/python3.7/site-packages/keras/engine/network.py", line 991, in process_node
layer(unpack_singleton(input_tensors), **kwargs)
File "/Users/venkatamohan.jakkula/anaconda3/lib/python3.7/site-packages/keras/engine/base_layer.py", line 457, in call
output = self.call(inputs, **kwargs)
File "/Users/venkatamohan.jakkula/anaconda3/lib/python3.7/site-packages/keras/layers/merge.py", line 161, in call
return self._merge_function(inputs)
File "/Users/venkatamohan.jakkula/anaconda3/lib/python3.7/site-packages/keras/layers/merge.py", line 365, in _merge_function
return K.concatenate(inputs, axis=self.axis)
File "/Users/venkatamohan.jakkula/anaconda3/lib/python3.7/site-packages/keras/backend/tensorflow_backend.py", line 1956, in concatenate
return tf.concat([to_dense(x) for x in tensors], axis)
File "/Users/venkatamohan.jakkula/anaconda3/lib/python3.7/site-packages/tensorflow/python/ops/array_ops.py", line 1075, in concat
dtype=dtypes.int32).get_shape(
File "/Users/venkatamohan.jakkula/anaconda3/lib/python3.7/site-packages/tensorflow/python/framework/ops.py", line 669, in convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/Users/venkatamohan.jakkula/anaconda3/lib/python3.7/site-packages/tensorflow/python/framework/constant_op.py", line 176, in _constant_tensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "/Users/venkatamohan.jakkula/anaconda3/lib/python3.7/site-packages/tensorflow/python/framework/constant_op.py", line 165, in constant
tensor_util.make_tensor_proto(value, dtype=dtype, shape=shape, verify_shape=verify_shape))
File "/Users/venkatamohan.jakkula/anaconda3/lib/python3.7/site-packages/tensorflow/python/framework/tensor_util.py", line 367, in make_tensor_proto
_AssertCompatible(values, dtype)
File "/Users/venkatamohan.jakkula/anaconda3/lib/python3.7/site-packages/tensorflow/python/framework/tensor_util.py", line 302, in _AssertCompatible
(dtype.name, repr(mismatch), type(mismatch).name))
TypeError: Expected int32, got list containing Tensors of type '_Message' instead.

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

1 participant