哪个python和tensorflow版本用于使用tensorflow api训练DeepLab v3 +?

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

我已经收到多个错误,这是由于我的系统中安装的TensorFlow版本和用于在Tensorflow API中编写代码的版本存在冲突。我正在使用python 3.6.7和Tensorflow 2.0来开始使用代码https://github.com/tensorflow/models/blob/master/research/deeplab/g3doc/installation.md

但是我遇到几个错误:

  1. flags = tf.app.flagsAttributeError:模块“ tensorflow”没有属性“ app”。当我使用2.0时,我将tf.app.flags替换为tf.compat.v1.flags。

  2. 从tensorflow.contrib导入slim作为contrib_slimModuleNotFoundError:没有名为“ tensorflow.contrib”的模块]]

  3. 我无法解决第二个问题。我可以获取帮助以了解应使用哪个python和tensorflow版本运行DeepLab v3 +吗?

我已经收到多个错误,这是由于我的系统中安装的TensorFlow版本和用于在Tensorflow API中编写代码的版本存在冲突。我正在使用python 3.6.7和...

python tensorflow tensorflow2.0 object-detection-api deeplab
1个回答
0
投票

您应该使用Tensorflow版本1.x来运行DeepLabV3 +模型,因为它使用会话来运行,并且还要使用基于TensorFlow 1.x的苗条库。因此,您的两个问题可以解决为:

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