Skip to content

Commit e621a33

Browse files
authored
Update README.md
1 parent 9f3319d commit e621a33

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

README.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
11
# onnx-parser
22

3-
onnx-parser is a C++ Inference generator tool that takes an onnx model and generates GDF code (OpenVX prototyping code).
3+
ONNX-Parser is a C++ Inference Code Generator tool that takes an onnx binary model and generates OpenVX [GDF](https://github.com/GPUOpen-ProfessionalCompute-Libraries/amdovx-core/tree/master/runvx) code for quick prototyping and kernel debugging.
4+
5+
The details of various OpenVX Kernels generated are from [vx_nn](https://github.com/GPUOpen-ProfessionalCompute-Libraries/amdovx-modules/tree/master/vx_nn)
6+
7+
Note: Currently only the float-32 tensor datatypes are supported. Special layers such as ROI Pooling Layer, Deconvolution are not yet supported.
8+
9+
## Supported Models
10+
11+
Network Name | Supported
12+
-------------| -----------
13+
AlexNet | Yes
14+
VGG-16 | Yes
15+
VGG-19 |
16+
ResNet-50 |
17+
18+
## Command-line interface
19+
20+
```
21+
% onnx_gdf_generator <net.pb> <n> <c> <H> <W>
22+
```
23+
Here net.pb is the onnx binary models which is a mandatory file.
24+
n,c,H,W refers to batch size, number of channels, height and width of an image which are optional parameters.
25+
26+
ONNX Binary models can be found here : [models](https://github.com/onnx/models)
27+
28+
## Pre-requisites
29+
1. Ubuntu 16.04
30+
2. CMAKE 2.8 or newer [download](https://cmake.org/download/)
31+
3. Install the [protobuf](https://github.com/google/protobuf) from C++ install instructions.
32+
33+
## Build Instructions
34+
35+
1. After cloning the repository, create a build folder where the executables has to be present.
36+
2. cmake -DCMAKE_BUILD_TYPE=Release ../onnx-parser
37+
3. make
38+
39+
Now, the executables are built and present in the build folder.
40+
41+

0 commit comments

Comments
 (0)