All Projects → KhronosGroup → Nnef Tools

KhronosGroup / Nnef Tools

Licence: apache-2.0
The NNEF Tools repository contains tools to generate and consume NNEF documents

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Nnef Tools

Nn tools
Neural Network Tools: Converter and Analyzer. For caffe, pytorch, draknet and so on.
Stars: ✭ 334 (+102.42%)
Mutual labels:  caffe, converter
Caffemodel2pytorch
Convert Caffe models to PyTorch
Stars: ✭ 258 (+56.36%)
Mutual labels:  caffe, converter
caffe weight converter
Caffe-to-Keras weight converter. Can also export weights as Numpy arrays for further processing.
Stars: ✭ 68 (-58.79%)
Mutual labels:  converter, caffe
Mxnet2caffe
convert model from mxnet to caffe without lossing precision
Stars: ✭ 20 (-87.88%)
Mutual labels:  caffe, converter
Curl To Csharp
curl to C# converter
Stars: ✭ 153 (-7.27%)
Mutual labels:  converter
Caffe Mobilenet
A caffe implementation of mobilenet's depthwise convolution layer.
Stars: ✭ 146 (-11.52%)
Mutual labels:  caffe
Low Rank Bilinear Pooling
Fine-grained classification via second order statistics in a compact end-to-end trainable model
Stars: ✭ 145 (-12.12%)
Mutual labels:  caffe
Jsona
Data formatter that creates simplified objects from JSON or stored reduxObject, creates JSON from the same simplified objects (in according with JSON API specification)
Stars: ✭ 144 (-12.73%)
Mutual labels:  converter
Gltf To Usdz Research
Research and proof of concept of converting glTF to USDZ for AR Quick Look (iOS 12+).
Stars: ✭ 164 (-0.61%)
Mutual labels:  converter
Showdown
A bidirectional Markdown to HTML to Markdown converter written in Javascript
Stars: ✭ 12,137 (+7255.76%)
Mutual labels:  converter
Sphereface Plus
SphereFace+ Implementation for <Learning towards Minimum Hyperspherical Energy> in NIPS'18.
Stars: ✭ 151 (-8.48%)
Mutual labels:  caffe
Handwritten.js
Convert typed text to realistic handwriting!
Stars: ✭ 1,806 (+994.55%)
Mutual labels:  converter
Py Rfcn Priv
code for py-R-FCN-multiGPU maintained by bupt-priv
Stars: ✭ 153 (-7.27%)
Mutual labels:  caffe
Ncnn
ncnn is a high-performance neural network inference framework optimized for the mobile platform
Stars: ✭ 13,376 (+8006.67%)
Mutual labels:  caffe
Relaxed
Create PDF documents using web technologies
Stars: ✭ 11,656 (+6964.24%)
Mutual labels:  converter
Flowiz
Converts Optical Flow files to images and optionally compiles them to a video. Flow viewer GUI is also available. Check out mockup right from Github Pages:
Stars: ✭ 144 (-12.73%)
Mutual labels:  converter
Gelatin
Transform text files to XML, JSON, or YAML
Stars: ✭ 150 (-9.09%)
Mutual labels:  converter
Html To Markdown
⚙️ Convert HTML to Markdown. Even works with entire websites and can be extended through rules.
Stars: ✭ 155 (-6.06%)
Mutual labels:  converter
Brocolli
pytorch 2 caffe
Stars: ✭ 150 (-9.09%)
Mutual labels:  caffe
Gitconverter
Синхронизация хранилища конфигурации "1С:Предприятия" с репозиторием Git и последующим переходом на разработку в 1C:Enterprise Development Tools (1C:EDT) с сохранением истории
Stars: ✭ 149 (-9.7%)
Mutual labels:  converter

License

NNEF-Tools

NNEF reduces machine learning deployment fragmentation by enabling a rich mix of neural network training tools and inference engines to be used by applications across a diverse range of devices and platforms.

This repository contains tools to generate and consume NNEF documents, such as a parser (C++ and Python) that can be included in consumer applications and converters for deep learning frameworks.

NNEF Model Zoo

A Model Zoo is now available; the 'models' folder contains a variety of NNEF models converted from various sources.

NNEF Tests

NNEF Tests folder contains tests to verify installation and unit tests.

NNEF Tools

NNEF Tools folder contains tools to convert pre-trained models in tensorFlow/caffe/caffe2/ONNX to NNEF format.

NNEF Parser

NNEF Parser folder contains C++ and Python source code for a sample NNEF graph parser.

Release Notes

Reworked NNEF Tools (10.21.2020)

The tools for converting models to NNEF and transforming NNEF models has been thoroughly reworked to make them more robust and unified and easier to maintain. The basic functionality of the main scripts has been kept, however their parameterization has been simplified and unified in some places; please refer to the readme and the help (-h option) of the respective scripts for more details. The scripts cover the following major areas of functionality: model conversion, optimization, execution and visualization. A GMAC calculator is also provide, and further utility scripts may be added in the future.

Change in quantization information in binary files (06.12.2020)

According to the change in version 1.0.3 of the NNEF specification, quantization algorithm information has been deprecated in the tensor binary file format. The tensor binary only stores the item-type of the tensor data, and the binary reader does not return quantization information (also used to be called 'compression' info). Furthermore, the mapping between stored item-types and data-types in the structural description has been clarified, so that the reader of a tensor binary can tell what the data-type of the read tensor is. This enhances the reader as it can now properly map the binary data to C++ or Python numpy types upon reading. The C++ code has been updated to perform such a mapping, and is now able to return a typed array instead of just plain bytes.

Change in shape inference compared to previous version (04.10.2019)

According to a change in version 1.0.1 of the NNEF specification, the shape_of operator in NNEF syntax is deprecated, and the parser does not support it. This enables the decoupling of parsing from shape inference, allowing parsing to succeed even if shape information is not available for all operations, such as custom defined operations before the graph definition. Shape inference can still be run after training, furthermore it can be customized (via function pointers) for custom defined operations.

TENSOR BINARY BUG FIX (10.19.2018)

There was a bug in the Python code that reads/writes the tensor binary files (the header contained 4 extra padding bytes therefore not conforming to the spec). The code has been updated to read/write and check the proper header size. As a consequence, any files written out with the code that contained the bug cannot be read back with the updated code. To aid the usage of such existing files, a script was created called fix_nnef_binary_size.py that can be used to remove the excess 4 bytes from existing NNEF files. The script is located in the root folder of this repo, it has no dependencies (not even the NNEF parser). It can be run on the main folder of an NNEF model, and it fixes all binary files in the folder. In case one runs it on an NNEF model that does not contain the bug, it does nothing. It can be used as follows:

python fix_nnef_binary_size.py my_nnef_model_folder

Such an invocation fixes the files in place. Optionally, a second argument can be supplied to the script to write the fixed files to a different output path. In this case, the script copies all non-binary files (such as graph.nnef) to the target folder, so the resulting folder contains the whole valid model.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].