Comments (5)
You can use Google's protoc
tool to dump the contents of an ONNX file, like this:
protoc --decode=onnx.ModelProto onnx.proto < mobilenetv2-1.0.onnx
In the above example:
onnx.ModelProto
is the message that you want to decode.onnx.proto
is the Protocol Buffer definition for Onnx (you can get one from here: https://github.com/onnx/onnx/blob/master/onnx/onnx.proto)mobilenetv2-1.0.onnx
is the ONNX file that you want to examine.
from onnx.
Hi @cdeterman, ONNX is a protobuf format, so it's format is "self-documented" in the ONNX protobuf file: https://github.com/onnx/onnx/blob/master/onnx/onnx.proto
Please reopen this if you need more info.
from onnx.
Can you tell me how the network(trained or going to be trained) is stored inside an onnx file, Specifically the format in which it is going to be present inside a .onnx file type.
from onnx.
Hi @ezyang
Thanks for the info. If you are trying to address the problem of model persistence and exchange format for "industry" it would be really great, however, to include some form of documentation about the format itself. Or at least to have a pointer on the official website for "Documentation", let it be even containing few paragraphs about the ONNX definition in protobuf.
from onnx.
did you already review https://github.com/onnx/onnx/tree/master/docs, specifically https://github.com/onnx/onnx/blob/master/docs/IR.md ?
Good idea to link from main website.
from onnx.
Related Issues (20)
- Create test for validating shape-inference methods handle unknown rank inputs
- Define DepthToSpace as function
- Using Pytorch Count of input_names provided during export not matching with session.get_inputs() HOT 1
- ONNX is broken when built with ONNX_USE_LITE_PROTO=OFF (using protobuf-24.4): File already exists in database: onnx/onnx-ml.proto HOT 5
- Schema error trying to create new version of training ops
- ERROR: Could not build wheels for onnx which use PEP 517 and cannot be installed directly HOT 2
- output different between onnx and pytorch HOT 7
- Implement DepthToSpace as a function HOT 2
- Reference implementation of ONNX Reduce sum square is mismatch with ONNX Spec when noop_with_empty_axes == 1 HOT 5
- Clarification of Reshape semantics for attribute 'allowzero' NOT set, zero volume HOT 3
- Change dynamic shape in fixed shape using C++ HOT 1
- The weekly model zoo CI has been failing HOT 12
- Incorrect input names for quantize/dequantize ONNX backend node tests HOT 1
- Fix and test numpy_helper to_array
- How to read onnx and obtain names, imgsz HOT 3
- Model zoo test failures HOT 1
- DequantizeLinear spec clarification: What happens if the subtraction overflows/underflows? HOT 1
- the model for UniqueOp in backend test is not always correct for different input
- A conflict doc abount compatibility between Onnx Version & ML Opset Version HOT 2
- [Shape Inference] Robustness of `ConstantOfShape` operator HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onnx.