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

Order of stored weights. #85

@JianmingTONG

Description

@JianmingTONG

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions