Models: which python and tensorflow version is used to train DeepLab v3+ using tensorflow api?

Created on 23 Nov 2019  路  4Comments  路  Source: tensorflow/models

I have been getting multiple errors which are due to conflicts in the TensorFlow version installed in my system and the version used to write the code in Tensorflow API. I am using python 3.6.7 and Tensorflow 2.0 to get started with the code https://github.com/tensorflow/models/blob/master/research/deeplab/g3doc/installation.md

But I am getting several errors :

flags = tf.app.flags AttributeError: module 'tensorflow' has no attribute 'app. As I am using 2.0 , I replaced tf.app.flags with tf.compat.v1.flags.

from tensorflow.contrib import slim as contrib_slim ModuleNotFoundError: No module named 'tensorflow.contrib'

I am not able to solve the second one. Can I get help to know which python and TensorFlow version should be used to run DeepLab v3+?

research support

Most helpful comment

I believe they aren't using tensorflow 2.
My question is for the authors, are there any plans for migrating the code to use the tf2 api?

All 4 comments

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
What is the top-level directory of the model you are using
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce

Hi
I am using Tensorflow CPU 2.0
I am working on Linux.
Python version 1.14
please reply.
This is a straight forward question. I see the same response for many questions asked regarding Tensorflow. I am hoping this is not an automatic response.

You may try TensorFlow 1.15, some projects in research repo may not support tf2.

I believe they aren't using tensorflow 2.
My question is for the authors, are there any plans for migrating the code to use the tf2 api?

Was this page helpful?
0 / 5 - 0 ratings