Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. Layer (type) Output Shape Param #
  2. =================================================================
  3. conv1 (Conv3D) (None, 16, 112, 112, 64) 5248
  4. _________________________________________________________________
  5. pool1 (MaxPooling3D) (None, 16, 56, 56, 64) 0
  6. _________________________________________________________________
  7. conv2 (Conv3D) (None, 16, 56, 56, 128) 221312
  8. _________________________________________________________________
  9. pool2 (MaxPooling3D) (None, 8, 28, 28, 128) 0
  10. _________________________________________________________________
  11. conv3a (Conv3D) (None, 8, 28, 28, 256) 884992
  12. _________________________________________________________________
  13. conv3b (Conv3D) (None, 8, 28, 28, 256) 1769728
  14. _________________________________________________________________
  15. pool3 (MaxPooling3D) (None, 4, 14, 14, 256) 0
  16. _________________________________________________________________
  17. conv4a (Conv3D) (None, 4, 14, 14, 512) 3539456
  18. _________________________________________________________________
  19. conv4b (Conv3D) (None, 4, 14, 14, 512) 7078400
  20. _________________________________________________________________
  21. pool4 (MaxPooling3D) (None, 2, 7, 7, 512) 0
  22. _________________________________________________________________
  23. conv5a (Conv3D) (None, 2, 7, 7, 512) 7078400
  24. _________________________________________________________________
  25. conv5b (Conv3D) (None, 2, 7, 7, 512) 7078400
  26. _________________________________________________________________
  27. zero_padding3d_1 (ZeroPaddin (None, 2, 9, 9, 512) 0
  28. _________________________________________________________________
  29. pool5 (MaxPooling3D) (None, 1, 4, 4, 512) 0
  30. _________________________________________________________________
  31. flatten_1 (Flatten) (None, 8192) 0
  32. _________________________________________________________________
  33. fc6 (Dense) (None, 4096) 33558528
  34. _________________________________________________________________
  35.  
  36. video = Input(shape=(frames,h, w,c))
  37. cnn_base = VGG16(input_shape=(h,w,c), weights="imagenet", include_top=False)
  38. cnn_out = GlobalAveragePooling2D()(cnn_base.output)
  39. cnn = Model(input=cnn_base.input, output=cnn_out)
  40. cnn.trainable = False
  41. encoded_frames = TimeDistributed(cnn)(video)
  42. encoded_sequence = LSTM(30)(encoded_frames)
  43. hidden_layer = Dense(output_dim=1024, activation="relu")(encoded_sequence)
  44. outputs = Dense(output_dim=classes, activation="sigmoid")(hidden_layer)
  45. model = Model([video], outputs)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement