pjreddie / darknet

Convolutional Neural Networks
http://pjreddie.com/darknet/
Other
25.83k stars 21.33k forks source link

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

Open krprashant94 opened 4 years ago

krprashant94 commented 4 years ago

on TensorFlow 2.0

Traceback (most recent call last):
  File "C:\Users\Admin\Desktop\tmp\yolo_test.py", line 2, in <module>
    from darkflow.net.build import TFNet
  File "C:\Program Files\Python37\lib\site-packages\darkflow\net\build.py", line 5, in <module>
    from .ops import op_create, identity
  File "C:\Program Files\Python37\lib\site-packages\darkflow\net\ops\__init__.py", line 1, in <module>
    from .simple import *
  File "C:\Program Files\Python37\lib\site-packages\darkflow\net\ops\simple.py", line 1, in <module>
    import tensorflow.contrib.slim as slim
ModuleNotFoundError: No module named 'tensorflow.contrib'
nakulrtm commented 4 years ago

I am also facing the same error, please suggest the way out

claessenskris commented 4 years ago

Is there already a solution available other the downgrading to Tensorflow 1.14 ? Should be compatible with Tensorflow 2.x, no ?

EddyKuo commented 4 years ago

still no answer........

nakulrtm commented 4 years ago

No other solution, apologies for replying late.

Nakul Surana Mobile: +91-8604295936 <+91-8604295936> Email: nakulrtm@gmail.com | nakuls@iitk.ac.in http://facebook.com/nakulrtm http://in.linkedin.com/in/nakulrtm

If you Quit today, then from tomorrow quitting will be the easiest job for you

On Wed, May 27, 2020 at 9:42 AM Eddy Kuo notifications@github.com wrote:

still no answer........

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pjreddie/darknet/issues/2011#issuecomment-634416882, or unsubscribe https://github.com/notifications/unsubscribe-auth/APK67QEG6YZLRBRWHDZWFHLRTSHLLANCNFSM4KLWT7KA .

krprashant94 commented 4 years ago

Therefore this is an compatibility issues. Please make it compatible for TF 2.x 🙏🙏 I looked at internet, contrib is moved in another package in TF 2.x.