GithubHelp home page GithubHelp logo

Comments (4)

dchouren avatar dchouren commented on July 28, 2024

Not sure if this is relevant, but I tried to do some basic inspection with h5py and have this:


>>> import h5py
>>> x = h5py.File('models/Keras_model_weights.h5', 'r')
>>> [y for y in x]
['conv1_1', 'conv1_1_zeropadding', 'conv1_2', 'conv1_2_zeropadding', 'conv2_1', 'conv2_1_zeropadding', 'conv2_2', 'conv2_2_zeropadding', 'conv3_1', 'conv3_1_zeropadding', 'conv3_2', 'conv3_2_zeropadding', 'conv3_3', 'conv3_3_zeropadding', 'conv4_1', 'conv4_1_zeropadding', 'conv4_2', 'conv4_2_zeropadding', 'conv4_3', 'conv4_3_zeropadding', 'conv5_1', 'conv5_1_zeropadding', 'conv5_2', 'conv5_2_zeropadding', 'conv5_3', 'conv5_3_zeropadding', 'data', 'drop6', 'drop7', 'fc6', 'fc6_flatten', 'fc7', 'fc8a', 'pool1', 'pool2', 'pool3', 'pool4', 'pool5', 'prob', 'relu1_1', 'relu1_2', 'relu2_1', 'relu2_2', 'relu3_1', 'relu3_2', 'relu3_3', 'relu4_1', 'relu4_2', 'relu4_3', 'relu5_1', 'relu5_2', 'relu5_3', 'relu6', 'relu7']

from keras.

MarcBS avatar MarcBS commented on July 28, 2024

Hi @dchouren , are you trying to load the model with the original Keras version? Or with this fork?

from keras.

dchouren avatar dchouren commented on July 28, 2024

Have tried both with the same result

from keras.

dchouren avatar dchouren commented on July 28, 2024

@MarcBS So it seems that what's being created is just a weights file. Is that correct? I can create a model, say VGG16, and then use model.load_weights('...') and that works. I would suggest changing the output from
'Finished storing the converted model...'
to indicate that this isn't an .h5 model file but rather just the layer weights so there's no confusion.

from keras.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.