无法导入tensorflow lite图像分类器
我正在运行tensorflow lite示例,在尝试导入图像分类器时出现导入错误无法导入tensorflow lite图像分类器,tensorflow,Tensorflow,我正在运行tensorflow lite示例,在尝试导入图像分类器时出现导入错误 pip install -q git+https://github.com/tensorflow/examples.git#egg=tensorflow-examples[model_maker] from tensorflow_examples.lite.model_maker.core.task import image_classifier ModuleNotFoundError: No module
pip install -q git+https://github.com/tensorflow/examples.git#egg=tensorflow-examples[model_maker]
from tensorflow_examples.lite.model_maker.core.task import image_classifier
ModuleNotFoundError: No module named 'official.nlp'
尝试克隆回购,然后使用以下路径:
PYTHONPATH=path\to\models
小心使用您将要使用的python路径
您克隆了回购协议吗?是的,谢谢,我刚让它工作,我的路径被弄乱了,它是从其他地方导入的。