Giter VIP home page Giter VIP logo

Comments (5)

milhidaka avatar milhidaka commented on May 25, 2024

The ./model is directory of model files in webdnn's original format.
This is converted from model file trained in tensorflow, caffe etc. by python tool provided in webdnn.

In the following tutorial, command like python train_mnist_keras.py --model fc does the conversion.
https://github.com/mil-tokyo/webdnn/tree/master/example/mnist

from webdnn.

photopea avatar photopea commented on May 25, 2024

So your Python tool converts models from other formats into one common forman? Is there a chance, that you describe that common format? Then, model training tools could export directily in that format, instead of you writing scripts for each tool.

from webdnn.

milhidaka avatar milhidaka commented on May 25, 2024

The converted model format is backend-specific and depends on model optimization algorithm implemented in the converter. Backend means WebMetal, WebAssembly, etc. Therefore, it is difficult to implement export tool on deep learning framework side. My plan to simplify the system is to limit input model format to ONNX.

from webdnn.

photopea avatar photopea commented on May 25, 2024

Hi, I made a parser for .caffemodel = Protocol Buffers + caffe-specific scheme. It is about 65 lines of Javascript without any dependencies. It is here on lines 115 - 180: https://github.com/photopea/UNN.js/blob/master/UNN.util.js

I used it to load , parse and run some .coffemodel models completely in a web browser. I think all your non-JS tools can be easily rewritten into JS, allowing your users do everything in a browser.

from webdnn.

photopea avatar photopea commented on May 25, 2024

By the way, I made a parser for ONNX in Javascript. ONNX is also based on Protocol Buffers, just like Caffe, and is extremely easy to parse.

By the way, do you know ONNX.js from Microsoft? I think it is a competitor to WebDNN. It beats Keras.js and TensorFlow.js https://github.com/microsoft/onnxjs

from webdnn.

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.