SSR-Net: A Compact Soft Stagewise Regression Network for Age Estimation
环境搭建
若出现某个模块找不到,可能是python版本改变,重新安装即可,下面的是建议顺序
conda install -c conda-forge moviepy
conda install -c cogsci pygame
conda install -c conda-forge requests
conda install -c conda-forge pytables
tensoflow-gpu
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu
dlib
ubuntu 安装
sudo apt-get install build-essential
sudo apt-get install cmake(如果报错:软件包 cmake 没有可安装候选,先sudo apt-get update)
sudo apt-get install libboost-python-dev
pip install dlib # pip3 install dlib
windows
-
去Boost官网下载最新版的boost包
-
在解压缩的包中,运行
bootstrap.bat
-
然后在同级目录中运行b2.exe
-
将同级目录中的bin目录加入系统环境变量中
-
运行
b2 -a --with-python address-model=64 toolset=msvc runtime-link=static
,完成
添加环境变量:
- BOOST_ROOT 为 …\boost_1_63_0
- BOOST_LIBRARYDIR 为boost_1_63_0\stage\lib
pip install dlib
opencv
pip install opencv-python
requests
pip install requests
tqdm
pip install tqdm
keras
pip install keras
pip install --upgrade keras