reger-men / tensorflow2openvx

convert tensorflow pre-trained model into OpenVX graph.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Convert tensorflow pre-trained models to OpenVX Graph

Build Status

This converter was created to convert my own (in Keras with tensorflow as backend trained) Model to Openvx Graph. The reason being that a direct comparison of the performance between openvx on AMD Hardware and TF_inference on Nvidia GPUs.

This implementation is still not fully implemented. However I tried to create a expandable structure to make it easy to expand the source code.

Since a caffe converter already exists, I tried to keep the structure similar for easy integration into amdovx-modules.

dependencies

To get run this project you have to download and build tensorflow. This should be resolved in the future by using NNEF

run

In the main function you have to define the model path "*.pb" and the NCHW input size.

After successful run this project extract weights and biases of the input Model simultaneously generate an GDF (Graph Descriptor File) and c++ ( with make file).

Please follow the instructions here to execute the generated OpenVX Graph.

License

MIT License (c) reger-men

About

convert tensorflow pre-trained model into OpenVX graph.

License:MIT License


Languages

Language:C++ 46.5%Language:Python 41.0%Language:Jupyter Notebook 3.5%Language:TypeScript 3.0%Language:HTML 2.2%Language:Go 1.6%Language:Shell 0.6%Language:Java 0.6%Language:C 0.4%Language:CMake 0.3%Language:Objective-C++ 0.1%Language:Makefile 0.1%Language:JavaScript 0.0%Language:Batchfile 0.0%Language:Objective-C 0.0%Language:Dockerfile 0.0%Language:LLVM 0.0%Language:CSS 0.0%Language:QMake 0.0%