deeplab-training icon indicating copy to clipboard operation
deeplab-training copied to clipboard

ModuleNotFoundError: No module named 'tensorflow.contrib'

Open SilalahiDivo opened this issue 3 years ago • 1 comments

  File "C:/Users/ASDUser/Deeplab/models/research/deeplab/train.py", line 12, in <module>
    from tensorflow.data import quantize as contrib_quantize
ModuleNotFoundError: No module named 'tensorflow.contrib'

Hi I am following your step by step. All are success, unfortunately when i am executing the train.py there was error say 'tensorflow.contrib'.

For your information I am using Python 3.7.4 and tensorflow 1.15. I also tried to downgrade the version of tensorflow to 1.14.0 and 1.13.1 but still "No module named 'tensorflow.contrib'

SilalahiDivo avatar Mar 25 '21 17:03 SilalahiDivo

Are you on a mac? Are you using anaconda navigator's version of conda / python / pip? There's a lot of issues that can happen with tensorflow, as I remember. A google search will reveal a million of these, each a bit specific to the environment and codebase. Here's a start

heaversm avatar Jul 20 '21 03:07 heaversm