You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I am running command python prepare_data.py getting below error
Using TensorFlow backend.
Traceback (most recent call last):
File "prepare_data.py", line 132, in
features = extract_features(directory)
File "prepare_data.py", line 38, in extract_features
model = Model(inputs=model.inputs, outputs=model.layers[-1].output)
File "C:\Users\XX\AppData\Local\Programs\Python\Python36\lib\site-packages\keras\legacy\interfaces.py", line 91, in wrapper
return func(*args, **kwargs)
File "C:\Users\XX\AppData\Local\Programs\Python\Python36\lib\site-packages\keras\engine\network.py", line 91, in init
self._init_graph_network(*args, **kwargs)
File "C:\Users\XX\AppData\Local\Programs\Python\Python36\lib\site-packages\keras\engine\network.py", line 251, in _init_graph_network
input_shapes=[x._keras_shape for x in self.inputs],
File "C:\Users\XX\AppData\Local\Programs\Python\Python36\lib\site-packages\keras\engine\network.py", line 251, in
input_shapes=[x._keras_shape for x in self.inputs],
AttributeError: 'Tensor' object has no attribute '_keras_shape'
The text was updated successfully, but these errors were encountered:
When I am running command
python prepare_data.py
getting below errorUsing TensorFlow backend.
Traceback (most recent call last):
File "prepare_data.py", line 132, in
features = extract_features(directory)
File "prepare_data.py", line 38, in extract_features
model = Model(inputs=model.inputs, outputs=model.layers[-1].output)
File "C:\Users\XX\AppData\Local\Programs\Python\Python36\lib\site-packages\keras\legacy\interfaces.py", line 91, in wrapper
return func(*args, **kwargs)
File "C:\Users\XX\AppData\Local\Programs\Python\Python36\lib\site-packages\keras\engine\network.py", line 91, in init
self._init_graph_network(*args, **kwargs)
File "C:\Users\XX\AppData\Local\Programs\Python\Python36\lib\site-packages\keras\engine\network.py", line 251, in _init_graph_network
input_shapes=[x._keras_shape for x in self.inputs],
File "C:\Users\XX\AppData\Local\Programs\Python\Python36\lib\site-packages\keras\engine\network.py", line 251, in
input_shapes=[x._keras_shape for x in self.inputs],
AttributeError: 'Tensor' object has no attribute '_keras_shape'
The text was updated successfully, but these errors were encountered: