Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Order of stored weights. #85

Open
JianmingTONG opened this issue Oct 24, 2019 · 0 comments
Open

Order of stored weights. #85

JianmingTONG opened this issue Oct 24, 2019 · 0 comments

Comments

@JianmingTONG
Copy link

Hi, I wanna to extract the weights from VGG model in the keras library for further other usage. And I read the weights from the following script

from keras.applications.vgg16 import VGG16
model = VGG16()
weights = []
for layer in model.layers:
    weights.append(layer.get_weights())  # list of numpy array

And the shape of weights in CONV1 is tuple(3,3,3,64). Could you help me check the order of this tuple? Is it (width of filter, height of filter, channel of filter, number of kernel) or ( height of filter, width of filter, channel of filter, number of kernel)?

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant