-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
How to get pool_3 layer from inception using Keras #50
Comments
I got this code to work
Is it getting pool_3 layer or some other layer. dimensions seems to match. |
model.summary() will print all the layers (along with the dimensions and parameters). |
@prashanthdumpuri Is there a way to look at specific layers from the summary? Inception has over 300 layers. Say I want to look at 35-50, is there a way to do this? |
base_model = InceptionV3(weights='imagenet')
for i, layer in enumerate(base_model.layers): print(i, layer.name)
This will print the name of every layer. So you can use a shortened for loop if you want to see specific layers.
And am pretty sure there is a layer summary as well. Check out
https://github.com/fchollet/keras/blob/master/keras/utils/layer_utils.py
Hope that helps.
Prashanth
… On Nov 26, 2017, at 12:57 PM, Moondra ***@***.***> wrote:
@prashanthdumpuri Is there a way to look at specific layers from the summary? Inception has over 300 layers. Say I want to look at 35-50, is there a way to do this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@prashanthdumpuri Thank you very much. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I used the following code following example in Readme.md
I get following error. What am I doing wrong.
Traceback (most recent call last):
The text was updated successfully, but these errors were encountered: