docker-edgetpu-compiler

所属分类:数值算法/人工智能
开发工具:Dockerfile
文件大小:2KB
下载次数:0
上传日期:2020-05-03 17:09:09
上 传 者sh-1993
说明:  docker-edgetpu编译器,使用docker从任何地方使用edgetpucompiler
(docker-edgetpu-compiler,use edgetpu_compiler from anywhere with docker)

文件列表:
Dockerfile (481, 2020-05-04)
LICENSE (1062, 2020-05-04)

# docker-edgetpu-compiler The [Edge TPU Compiler](https://coral.ai/docs/edgetpu/compiler/) (edgetpu_compiler) is a command line tool that compiles a TensorFlow Lite model (.tflite file) into a file that's compatible with the Edge TPU (_edgetpu.tflite file). Because the Edge TPU compiler currently only runs on Debian based Linux systems, we can run the compiler through a Docker container instead when on Windows or MacOS. ## Requirements - [Docker](https://docs.docker.com/install/) Verify that Docker is installed by running command: ```sh docker version ``` This container has been tested and verified on Windows 10 and Docker CE 19.03.8 ## Build container ```sh docker build --tag edgetpu_compiler https://github.com/tomassams/docker-edgetpu-compiler.git ``` ## Run compiler The easiest is to run the command from the directory containing your .tflite model. This command will output a compiled model (_edgetpu.tflite file) to the same directory. **Windows - PowerShell** ```sh docker run -it --rm -v ${pwd}:/home/edgetpu edgetpu_compiler edgetpu_compiler YOUR_MODEL_FILE.tflite ``` **MacOS and Linux - Terminal** ```sh docker run -it --rm -v $(pwd):/home/edgetpu edgetpu_compiler edgetpu_compiler YOUR_MODEL_FILE.tflite ``` You can also run it from inside the container shell. Replace /your/path with the path to where you keep the .tflite model, e.g. D:\model or /d/model: ```sh docker run -it --rm -v /your/host/path:/home/edgetpu edgetpu_compiler ``` ```sh edgetpu_compiler YOUR_MODEL_FILE.tflite ```

近期下载者

相关文件


收藏者