heaversm / deeplab-training

Training your own Deeplab Model in Tensorflow
37 stars 22 forks source link

ModuleNotFoundError: No module named 'tensorflow.contrib' #10

Open SilalahiDivo opened 3 years ago

SilalahiDivo commented 3 years ago
  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'

heaversm commented 3 years ago

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