thtrieu / darkflow

Translate darknet to tensorflow. Load trained weights, retrain/fine-tune using tensorflow, export constant graph def to mobile devices
GNU General Public License v3.0
6.13k stars 2.09k forks source link

How to work with tensorflow after 1.15 #1187

Open XufengRen opened 3 years ago

XufengRen commented 3 years ago

I am using windows. When I try to run a flow command, it prompts: ModuleNotFoundError: No module named 'tensorflow.contrib'. I looked it up and find tensorflow.contrib is removed after tensorflow 1.15. I am having a little trouble trying to install old version of tensorflow as well. How can we make it work?

Yeaminul commented 3 years ago

Yes, you can. .\darkflow > pip install tf-slim and then import tf_slim as slim in the respective .py files