openvino2tensorflow

(โ˜… 344)

This script converts the ONNX/OpenVINO IR model to Tensorflow's saved_model, tflite, h5, tfjs, tftrt(TensorRT), CoreML, EdgeTPU, ONNX and pb. PyTorch (NCHW) -> ONNX (NCHW) -> OpenVINO (NCHW) -> openvino2tensorflow -> Tensorflow/Keras (NHWC/NCHW) -> TFLite (NHWC/NCHW). And the conversion from .pb to saved_model and from saved_model to .pb and from .pb to .tflite and saved_model to .tflite and saved_model to onnx. Support for building environments with Docker. It is possible to directly access the host PC GUI and the camera to verify the operation. NVIDIA GPU (dGPU) support. Intel iHD GPU (iGPU) support.

  • .dockerignore
  • .gitignore
  • bashrc
  • Dockerfile
  • Dockerfile.base
  • LICENSE
  • README.md
  • setup.py
  • tf_to_openvino_reverse_check.sh
  • weight_replacement_config_sample.json

# Installation Guide

1. Get the code
git clone https://github.com/PINTO0309/openvino2tensorflow

Downloads the entire project code from GitHub to your computer.

cd openvino2tensorflow

Moves into the project folder you just downloaded.

2. Docker

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
$ docker pull ghcr.io/pinto0309/openvino2tensorflow:latest

Type this command into your terminal and run it.

$ docker build --no-cache -t ghcr.io/pinto0309/openvino2tensorflow:latest .

Builds a runnable image based on the Dockerfile.

$ docker run -it --rm \

Runs the built image as an actual container.

docker run -it --rm \

Runs the built image as an actual container.

docker run --gpus all -it --rm \

Runs the built image as an actual container.

โœ… Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.

Pulled directly from this repo's README.

3. Python

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
$ pip3 install --user --upgrade openvino2tensorflow

Installs the Python libraries listed in requirements.txt (or similar).

$ pip3 install --user --upgrade git+https://github.com/PINTO0309/openvino2tensorflow

Installs the Python libraries listed in requirements.txt (or similar).

โœ… If it runs without errors and prints output in the terminal, it worked.

Pulled directly from this repo's README.

// repository documentation