Pip says that it is installed. Python3 can import tflite_support. But when I try to import from tflite_support.task, (in my Python script) it says, ModuleNotFoundError: no Module named 'tflite_support.task'
I have the latest Jetpack installed that I can, 4.6, which includes Ubuntu 18.04
I'm using a virtual environment in Python 3.6 and have those libraries included in PYTHONPATH
Even Tensorflow 2.6.2+nv21.12 is installed and can be imported in Python.
uriah@uriah-jetson:~/Herbie_Bot/raspi_stills$ python3 raspi_detect.py -model detect2.tflite -image /home/uriah/Herbie_Bot/raspi_stills/image_work/image1.jpg
Traceback (most recent call last):
File "raspi_detect.py", line 10, in
from tflite_support.task import vision
ModuleNotFoundError: No module named 'tflite_support.task'
uriah@uriah-jetson:~/Herbie_Bot/raspi_stills$ pip3 show tflite-support
Name: tflite-support
Version: 0.1.0a1
Summary: TFLite Support is a toolkit that helps users to develop ML and deploy TFLite models onto mobile devices.
Home-page: UNKNOWN
Author: Google, LLC
Author-email: [email protected]
License: UNKNOWN
Location: /home/uriah/.local/lib/python3.6/site-packages
Requires: absl-py, numpy, pybind11
Required-by:
uriah@uriah-jetson:~/Herbie_Bot/raspi_stills$ pip3 show pybind11
Name: pybind11
Version: 2.10.0
Summary: Seamless operability between C++11 and Python
Home-page: https://github.com/pybind/pybind11
Author: Wenzel Jakob
Author-email: [email protected]
License: BSD
Location: /usr/local/lib/python3.6/dist-packages
Requires:
Required-by: tflite-support
uriah@uriah-jetson:~/Herbie_Bot/raspi_stills$ pip3 show absl-py
Name: absl-py
Version: 0.12.0
Summary: Abseil Python Common Libraries, see https://github.com/abseil/abseil-py.
Home-page: https://github.com/abseil/abseil-py
Author: The Abseil Authors
Author-email:
License: Apache 2.0
Location: /usr/local/lib/python3.6/dist-packages
Requires: six
Required-by: tensorboard, tensorflow, tflite-support
uriah@uriah-jetson:~/Herbie_Bot/raspi_stills$ pip3 show six
Name: six
Version: 1.15.0
Summary: Python 2 and 3 compatibility utilities
Home-page: https://github.com/benjaminp/six
Author: Benjamin Peterson
Author-email: [email protected]
License: MIT
Location: /usr/local/lib/python3.6/dist-packages
Requires:
Required-by: absl-py, astunparse, google-auth, google-pasta, grpcio, Keras-Preprocessing, mock, tensorflow, virtualenv
'tflite_support.task' is only available for tflite_support version greater than 0.4, and yours is 0.1.0. I think we deprecated Python 3.6 long time ago. Please use Python 3.7+.