Skip to content

Instantly share code, notes, and snippets.

@dipanjanS
Created August 15, 2019 07:45
Show Gist options
  • Save dipanjanS/429d0d8410f5f3ee3fda7b98884360de to your computer and use it in GitHub Desktop.
Save dipanjanS/429d0d8410f5f3ee3fda7b98884360de to your computer and use it in GitHub Desktop.
model = VGG16(weights='imagenet', include_top=True)
model.summary()
# output
_________________________________________________________________
Layer (type) Output Shape Param #
=================================================================
input_3 (InputLayer) (None, 224, 224, 3) 0
_________________________________________________________________
block1_conv1 (Conv2D) (None, 224, 224, 64) 1792
_________________________________________________________________
block1_conv2 (Conv2D) (None, 224, 224, 64) 36928
_________________________________________________________________
block1_pool (MaxPooling2D) (None, 112, 112, 64) 0
_________________________________________________________________
...
...
_________________________________________________________________
fc2 (Dense) (None, 4096) 16781312
_________________________________________________________________
predictions (Dense) (None, 1000) 4097000
=================================================================
Total params: 138,357,544
Trainable params: 138,357,544
Non-trainable params: 0
_________________________________________________________________
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment