How can I fix AttributeError: module 'tensorflow' has no attribute 'ConfigProto'
How can I fix AttributeError: module 'tensorflow' has no attribute 'ConfigProto'
我是深度学习的新手,当我尝试 运行 命令 for image style transfer 我正在使用的教程中给出的命令时出现以下错误学习。
python evaluate.py --checkpoint ./rain-princess.ckpt --in-path <path_to_input_file> --out-path ./output_image.jpg
我安装了 scipy 1.1.0。 (降级以修复问题 AttributeError:模块 'tensorflow' 没有属性 'imread').
我安装了 Tensorflow。我安装了枕头。
请注意,我没有编辑任何文件的知识,我只是复制命令以查看其执行方式。
A screenshot of the error message
这可能是因为您使用的是 tensorflow 2.0(当默认安装 tensorflow 时,它现在安装 2.0)。似乎您的 evaluvate.py 文件适合使用 tensorflow 1.* 执行,因为它搜索 2.0 中不存在的 configproto 所以将 tensorflow 降级
pip install tensorflow==1.14
我是深度学习的新手,当我尝试 运行 命令 for image style transfer 我正在使用的教程中给出的命令时出现以下错误学习。
python evaluate.py --checkpoint ./rain-princess.ckpt --in-path <path_to_input_file> --out-path ./output_image.jpg
我安装了 scipy 1.1.0。 (降级以修复问题 AttributeError:模块 'tensorflow' 没有属性 'imread').
我安装了 Tensorflow。我安装了枕头。
请注意,我没有编辑任何文件的知识,我只是复制命令以查看其执行方式。
A screenshot of the error message
这可能是因为您使用的是 tensorflow 2.0(当默认安装 tensorflow 时,它现在安装 2.0)。似乎您的 evaluvate.py 文件适合使用 tensorflow 1.* 执行,因为它搜索 2.0 中不存在的 configproto 所以将 tensorflow 降级
pip install tensorflow==1.14