-
Notifications
You must be signed in to change notification settings - Fork 949
Description
Since most people are using Pytorch or Tensorflow 2 and Python3, installing this tensorflow1.4 repo is difficult for people who want to use it in 2023. I first provide the full installation below
Ubuntu 20.04:
- create a virtual env (make sure to specify python=2.7, otherwise you can not install TensorFlow 1.x using pip)
conda create -n PRNet pyton=2.7
- install TensorFlow 1.6
pip install tensorflow==1.6
- install dlib
pip install dlib
- install other libs
pip install scipy
pip install scikit-image
RIght now if you run demo.py and have this issue Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA. Congratulations, you need to build the TensorFlow on your own (refer to stack overflow for the reason).
As for building TensorFlow 1.6 on your own, first go to this github , under the list Expand for older builds, download the 1.6.0 tensorflow cpu whl file. Then you build by:
pip install --ignore-installed --upgrade /PATH/TO/BINARY.whl --user
Since TensorFlow 1.6 does not support the latest CUDA version, I can not find a way to use TensorFlow-gpu 1.6 right now