Ubuntu16下openface的安装与测试
来源:互联网 发布:淘宝视频链接地址 编辑:程序博客网 时间:2024/06/05 10:50
Ubuntu16安装配置openface
1. 安装准备:
sudo apt-get install build-essential-y
sudo apt-get install cmake -y
sudo apt-get install curl -y
sudo apt-get install gfortran -y
sudo apt-get install git -y
sudo apt-get install libatlas-dev -y
sudo apt-get install libavcodec-dev -y
sudo apt-get install libavformat-dev-y
sudo apt-get install libboost-all-dev-y
sudo apt-get install libgtk2.0-dev -y
sudo apt-get install libjpeg-dev -y
sudo apt-get install liblapack-dev -y
sudo apt-get install libswscale-dev -y
sudo apt-get install pkg-config -y
sudo apt-get install python-dev -y
sudo apt-get install python-pip -y
sudo apt-get install wget -y
sudo apt-get install zip -y
2. 安装库
sudo pip2 install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
sudo pip2 install scipy -i https://pypi.tuna.tsinghua.edu.cn/simple
sudo pip2 install pandas -i https://pypi.tuna.tsinghua.edu.cn/simple
sudo pip2 install scikit-learn -i https://pypi.tuna.tsinghua.edu.cn/simple
sudo pip2 install scikit-image -i https://pypi.tuna.tsinghua.edu.cn/simple
3. 安装torch
git clonehttps://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
source ~/.bashrc
安装包:
~/torch/install/bin/luarocks installdpnn
~/torch/install/bin/luarocks installnn
~/torch/install/bin/luarocks installoptim
~/torch/install/bin/luarocks installcsvigo
~/torch/install/bin/luarocks installcunn
~/torch/install/bin/luarocks install torchx
~/torch/install/bin/luarocks installgraphicsmagick
~/torch/install/bin/luarocks install cutorch
4. 安装opencv:
mkdir -p src
cd src
复制编译好的opencv到目录下。
5. 安装dlib:
下载:https://github.com/davisking/dlib/releases
mkdir -p ~/src
cd ~/src tar xf dlib-18.16.tar.gz
cd dlib-18.16/python_examples
mkdir build
cd build
cmake ../../tools/python
cmake --build . --config Release
sudo cp dlib.so/usr/local/lib/python2.7/dist-packages
6. 安装openface:
git clone https://github.com/cmusatyalab/openface.git
sudo python2 setup.py install
models/get-models.sh
运行demo2:
./demos/compare.py images/examples/{lennon*,clapton*}
运行demo3:
./demos/classifier.py infermodels/openface/celeb-classifier.nn4.small2.v1.pkl ./images/examples/carell.jpg
- Ubuntu16下openface的安装与测试
- Ubuntu16.04下openface安装
- PCL1.8.0在Ubuntu16.04下的安装及测试
- openface安装
- Ubuntu 14.04下Openface的环境搭建
- Ubuntu 14.04下Openface的环境搭建
- Ubuntu 14.04下Openface的环境搭建
- Ubuntu 14.04下Openface的环境搭建
- 安装及运行openface的大坑
- Ubuntu16.04下MySQL的安装与配置(UTF8)
- ubuntu16.10下JDK8的安装与配置
- Ubuntu16.04下Hadoop 2.7.3的安装与配置
- ubuntu16.10下JDK8的安装与配置
- Ubuntu16.04下Hadoop 2.7.3的安装与配置
- ubuntu16.04下KDevelop安装与使用
- Openface初次安装配置
- Openface在Ubuntu系统下的环境搭建(使用Anaconda管理,在Ubuntu14.04与16.04上都有效)
- linux下libusb的安装与测试
- CNN卷积各层的参数和链接个数的计算
- [C/C++] 动态库与静态库
- 【Lucene】索引库的优化
- 日常监控运维需关注点
- 【深度学习】神经网络2. epoch, iteration, batchsize相关理解和说明
- Ubuntu16下openface的安装与测试
- 系统间通信方式之(ActiveMQ的使用性能优化3)(十四)
- 使用NPOI导出Excel模板
- 第二章 SQL命令参考-SELECT
- ElasticSearch之高亮显示
- C++语法之操作符重载函数
- ajax的简单使用——get&post两种方法的实现(1)
- WebStorm设置编辑器背景图片
- wps提示:发现您尚未安装打印机-究极解决办法