Tensorflow没有名为官方的模块

2023-12-21

我正在尝试使用tensorflows模型存储库的官方mnist目录中的网络。在我的 Windows 系统上,我收到此错误:

C:\Users\ry\Desktop\NNTesting\models\official\mnist>mnist_test.py
Traceback (most recent call last):
  File "C:\Users\ry\Desktop\NNTesting\models\official\mnist\mnist_test.py",line 24, in <module>
    from official.mnist import mnist
ModuleNotFoundError: No module named 'official'

我已关注他们的官方指示 https://github.com/tensorflow/models/tree/master/official#running-the-models并使用设置我的Python路径

set PYTHONPATH="PYTHONPATH:"%cd%"

并可以确认

PYTHONPATH="$PYTHONPATH:C:\Users\ry\Desktop\NNTesting\models"

而且我也成功安装了依赖项。有谁有在 Windows 系统上使用这些模型的经验并且可以帮助我解决这个路径问题吗?我不确定我在这里做错了什么。

Thanks


pip install tf-models-official
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Tensorflow没有名为官方的模块 的相关文章

随机推荐