ラズパイでTensorFlow Lite環境
といってもPINTOさんの高速化チューニング済みのリポジトリを使用する
- https://github.com/PINTO0309/TensorflowLite-bin
導入方法もREADMEに従う。
- 一部、まっさら状態だったので、numpyを入れた
$ pip3 install numpy
$ sudo apt install libatlas-base-dev
- sample動いた
$ python3 label_image.py --num_threads 4 --image grace_hopper.bmp --model_file mobilenet_v1_1.0_224_quant.tflite --label_file labels.txt
0.415686: 653:military uniform
0.352941: 907:Windsor tie
0.058824: 668:mortarboard
0.035294: 458:bow tie, bow-tie, bowtie
0.035294: 835:suit, suit of clothes
time: 0.08983588218688965