Giter Site home page Giter Site logo

Comments (4)

caisq avatar caisq commented on August 25, 2024

@lutzroeder Thanks for this question. TensorFlow.js can currently load models from keras (hence model.json) and tensorflow (hence .pb). Are there any existing model zoos for (python) keras and tensorflow models? If so, I guess I don't fully understand why we need a separate zoo for TensorFlow.js.

On the flip side, it is currently possible to export the topology of TensorFlow.js models in the keras model.json format, but since those models are essentially keras models, they can just use whatever existing keras model zoo there is. Another question I have: does Netron load keras HDF5 files?

from tfjs.

lutzroeder avatar lutzroeder commented on August 25, 2024

Mostly looking for some typical tfjs models or corner cases. model.json files are not exactly the same as Keras .json files. For example, instead of model_config at the root there is another modelTopology object inserted at the root. Has there been some discussion to make them a strict superset of Keras .json files with model_config at the root and adding the weight information at the same level? Instead of a converter, wouldn't it make sense to use the Keras .json format directly or even save from Keras? Also, given other frameworks like MXNet use .json, some discussion around using file extensions or how to detect different formats would be helpful.

Yes, Netron does load Keras .h5 models.

from tfjs.

davidsoergel avatar davidsoergel commented on August 25, 2024

Yep, the question of standardizing the serialization format is under active discussion. The current model.json should be considered a TF.js implementation detail for now. Good point about the file extension, thanks!

from tfjs.

nsthorat avatar nsthorat commented on August 25, 2024

Closing this out -- any discussions can move over to the community discussion mailing list.

from tfjs.

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.