Sign inSign up

randhawp/tflite

By randhawp

•Updated about 5 years ago

experimental

Image
0

560

randhawp/tflite repository overview

⁠tflite

  • start the docker container > docker run -it randhawp/tflite:latest
  • copy the .tflite , labels.txt and horse.bmp to the docker continer as docker cp :/home/tf/

⁠To run inferences run

./label_image --m mobilenet_quant_v1_224.tflite -l labels.txt -i horse.bmp

⁠to build just your own program like the minimial under /examples

  1. go to the /examples/minimal and mkdir -p /build/lib
  2. replace the provided CMakeLists under /examples/minimal with this
 Builds the minimal Tensorflow Lite example.

cmake_minimum_required(VERSION 3.16)
project(minimal C CXX)
set(ALLOW_DUPLICATE_CUSTOM_TARGETS TRUE)

add_subdirectory( "/home/tf/tensorflow_src/tensorflow/lite/" lib)

set(CMAKE_CXX_STANDARD 11)
add_executable(minimal
minimal.cc
)
target_link_libraries(minimal
tensorflow-lite
)
~                                                                                                                                                               ```                                                                                                                                 
~                               

Tag summary

Content type

Image

Digest

Size

1.2 GB

Last updated

about 5 years ago

docker pull randhawp/tflite