harvitronix / five-video-classification-methods

Code that accompanies my blog post outlining five video classification methods in Keras and TensorFlow
https://medium.com/@harvitronix/five-video-classification-methods-implemented-in-keras-and-tensorflow-99cad29cc0b5
MIT License
1.17k stars 479 forks source link

Error in 'extractor.py' when trying to run 'extract_features.py' #62

Closed ord1991 closed 6 years ago

ord1991 commented 6 years ago

Hi all. When trying to extract features i get the following error. (FYI: currently on windows) C:\Users\HTL99\Desktop\DL>extract_features.py Using TensorFlow backend. PlayingDhol IceDancing GolfSwing ... JumpingJack HandstandPushups BenchPress Traceback (most recent call last): File "C:\Users\HTL99\Desktop\DL\extract_features.py", line 28, in <module> model = Extractor() File "C:\Users\HTL99\Desktop\DL\extractor.py", line 18, in __init__ include_top=True File "C:\Users\HTL99\AppData\Local\Programs\Python\Python35\lib\site-packages\keras\applications\inception_v3.py", line 198, in InceptionV3 name='mixed0') File "C:\Users\HTL99\AppData\Local\Programs\Python\Python35\lib\site-packages\keras\layers\merge.py", line 627, in concatenate return Concatenate(axis=axis, **kwargs)(inputs) File "C:\Users\HTL99\AppData\Local\Programs\Python\Python35\lib\site-packages\keras\engine\topology.py", line 603, in __call__ output = self.call(inputs, **kwargs) File "C:\Users\HTL99\AppData\Local\Programs\Python\Python35\lib\site-packages\keras\layers\merge.py", line 347, in call return K.concatenate(inputs, axis=self.axis) File "C:\Users\HTL99\AppData\Local\Programs\Python\Python35\lib\site-packages\keras\backend\tensorflow_backend.py", line 1768, in concatenate return tf.concat([to_dense(x) for x in tensors], axis) File "C:\Users\HTL99\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\ops\array_ops.py", line 1075, in concat dtype=dtypes.int32).get_shape( File "C:\Users\HTL99\AppData\Local\Programs\Python\Python35\lib\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 "C:\Users\HTL99\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\constant_op.py", line 176, in _constant_tensor_conversion_function return constant(v, dtype=dtype, name=name) File "C:\Users\HTL99\AppData\Local\Programs\Python\Python35\lib\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 "C:\Users\HTL99\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 367, in make_tensor_proto _AssertCompatible(values, dtype) File "C:\Users\HTL99\AppData\Local\Programs\Python\Python35\lib\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. Thanks for any help