tflite2tensorflow

(โ˜… 272)

Generate saved_model, tfjs, tf-trt, EdgeTPU, CoreML, quantized tflite, ONNX, OpenVINO, Myriad Inference Engine blob and .pb from .tflite. 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. Supports inverse quantization of INT8 quantization model.

  • .dockerignore
  • .gitignore
  • bashrc
  • Dockerfile
  • LICENSE
  • README.md
  • setup.py

# Installation Guide

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

Downloads the entire project code from GitHub to your computer.

cd tflite2tensorflow

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/tflite2tensorflow:latest

Type this command into your terminal and run it.

$ docker build -t ghcr.io/pinto0309/tflite2tensorflow: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 tflite2tensorflow

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

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

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

$ sudo pip3 uninstall -y \

Type this command into your terminal and run it.

&& pip3 install --user --force-reinstall tflite_runtime-${TENSORFLOWVER}-cp38-none-linux_x86_64.whl \

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

&& pip3 install --user --force-reinstall tensorflow-${TENSORFLOWVER}-cp38-none-linux_x86_64.whl \

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