ModuleNotFoundError: tensorflow.python.keras.layers.preprocessing

问题描述 投票:0回答:1

即使我在 2.12.0 版的 venv 中安装了 tensorflow,它也有点没有 tensorflow.python.keras.layers.preprocessing。我尝试安装对象检测 API,但我仍在努力让它工作。这是我尝试运行时收到的错误消息 测试文件 python object_detection/builders/model_builder_tf2_test.py。第二张照片显示了我尝试运行命令 python -m pip install 时得到的结果。

有些东西有效,但就像我说的,我无法使测试文件正常工作。enter image description hereenter image description here

我已经安装了 visual studio 2017,因为我得到一个错误,对象检测需要它,我也做了这里安装指南中写的所有内容https://tensorflow-object-detection-api-tutorial.readthedocs.io/ en/latest/install.html#tf-models-install-coco

我已经尝试了整个 da 所以如果有人能帮助我我会很高兴:)

python tensorflow keras object-detection object-detection-api
1个回答
0
投票

你需要更新你的 TensorFlow -

pip install tensorflow==2.0.0

对于 gpu 版本 -

pip install tensorflow-gpu==2.0.0 

看看这个post

© www.soinside.com 2019 - 2024. All rights reserved.