-
Notifications
You must be signed in to change notification settings - Fork 43
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
no such layer flatten #12
Comments
could you help me with that error |
I am also facing the same error. Could you please help me to solve this issue. |
I'm having this error also. |
Did anyone solve this error? I am stuck here... |
I think there was a problem extracting the image feature. If you set the flag to 'True' then it extracts all image features from scratch. But if you don't and run the train file then it uses the pre trained model of image features given by the author to generation. So, only the data_manager.preprocess() has the problem here. |
before you get the base_model, you can check the model summary to see name of each layer. |
File "", line 1, in
data_manager.preprocess()
File "C:/Users/chaturbhuj/Downloads/Compressed/neural_image_captioning-master/src/data_manager.py", line 75, in preprocess
self.get_image_features(self.image_directory)
File "C:/Users/chaturbhuj/Downloads/Compressed/neural_image_captioning-master/src/data_manager.py", line 232, in get_image_features
output=base_model.get_layer('flatten').output)
File "C:\Users\chaturbhuj\Anaconda3\lib\site-packages\keras\engine\topology.py", line 1868, in get_layer
raise ValueError('No such layer: ' + name)
ValueError: No such layer: flatten
The text was updated successfully, but these errors were encountered: