From b63a340acac2d8b5e16e1b4b7f56fe02e442d741 Mon Sep 17 00:00:00 2001 From: Daniyal Shahrokhian Date: Mon, 13 Mar 2017 22:43:59 +0100 Subject: [PATCH 1/4] Add installer for Ubuntu 16.04 LTE. --- install.sh | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..81d0d77 --- /dev/null +++ b/install.sh @@ -0,0 +1,86 @@ +#!/bin/bash +#============================================================================== +# Title: install.sh +# Description: Install everything necessary for OpenFace to compile. +# Author: Daniyal Shahrokhian +# Date: 20170310 +# Version : 1.0 +# Usage: bash install.sh +# NOTES: There are certain steps to be taken in the system before installing +# via this script (refer to README): Run +# `sudo gedit /etc/apt/sources.list` and change the line +# `deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted` to +# `deb http://us.archive.ubuntu.com/ubuntu/ xenial main universe` +#============================================================================== + +# Exit script if any command fails +set -e +set -o pipefail + +if [ $# -ne 1 ] + then + echo "Usage: install.sh " + exit 1 +fi + +DIRECTORY="$1" +cd "$DIRECTORY" +echo "Installation under ${DIRECTORY}" + +# Essential Dependencies +echo "Installing Essential dependencies..." +sudo apt-get update +sudo apt-get install build-essential +sudo apt-get install llvm + +sudo apt-get update +sudo apt-get install clang-3.7 libc++-dev libc++abi-dev +sudo apt-get install cmake +sudo apt-get install libopenblas-dev liblapack-dev +sudo apt-get install git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev +sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev checkinstall +echo "Essential dependencies installed." + +# OpenCV Dependency +echo "Downloading OpenCV..." +if [ -d "opencv-3.1.0" ]; then + sudo rm -r "opencv-3.1.0" +fi + +wget https://github.com/Itseez/opencv/archive/3.1.0.zip +unzip 3.1.0.zip +rm 3.1.0.zip +cd opencv-3.1.0 +mkdir build +cd build +echo "Installing OpenCV..." +cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_SHARED_LIBS=OFF .. +make -j4 +sudo make install +cd "../.." +echo "OpenCV installed." + +# Boost C++ Dependency +echo "Installing Boost..." +sudo apt-get install libboost-all-dev +echo "Boost installed." + +# OpenFace installation +echo "Downloading OpenFace..." +if [ -d "OpenFace" ]; then + sudo rm -r "OpenFace" +fi + +git clone https://github.com/TadasBaltrusaitis/OpenFace.git +cd OpenFace +mkdir build +cd build +echo "Installing OpenFace..." +cmake -D CMAKE_BUILD_TYPE=RELEASE .. +make +echo "OpenFace installed." + +# Installation test +echo "Testing installation..." +./bin/FaceLandmarkVid -f "../videos/changeLighting.wmv" +echo "Installation tested." From 77764da0d88c78495113a0f28b478cbb00e3032e Mon Sep 17 00:00:00 2001 From: Daniyal Shahrokhian Date: Mon, 13 Mar 2017 23:04:58 +0100 Subject: [PATCH 2/4] Update description of the file. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 81d0d77..ccbf879 100755 --- a/install.sh +++ b/install.sh @@ -5,7 +5,7 @@ # Author: Daniyal Shahrokhian # Date: 20170310 # Version : 1.0 -# Usage: bash install.sh +# Usage: bash install.sh # NOTES: There are certain steps to be taken in the system before installing # via this script (refer to README): Run # `sudo gedit /etc/apt/sources.list` and change the line From b35adbad9100bc619358e1eacf54bc0518c808b9 Mon Sep 17 00:00:00 2001 From: Sunil Shah Date: Thu, 27 Apr 2017 13:16:24 -0700 Subject: [PATCH 3/4] Fix heading formatting in README.md. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bf2ed80..d57a666 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ The system is capable of performing a number of facial analysis tasks: If you use any of the resources provided on this page in any of your publications we ask you to cite the following work and the work for a relevant submodule you used. -####Overall system +#### Overall system **OpenFace: an open source facial behavior analysis toolkit** Tadas BaltruĊĦaitis, Peter Robinson, and Louis-Philippe Morency, From e39890fa90e9a67e3bf1916393f63b5fa9380e64 Mon Sep 17 00:00:00 2001 From: Daniyal Shahrokhian Date: Mon, 1 May 2017 09:34:07 +0200 Subject: [PATCH 4/4] Remove duplicate repo and unecessary commands. --- install.sh | 60 ++++++++++++++++++------------------------------------ 1 file changed, 20 insertions(+), 40 deletions(-) diff --git a/install.sh b/install.sh index 81d0d77..036dd82 100755 --- a/install.sh +++ b/install.sh @@ -3,8 +3,8 @@ # Title: install.sh # Description: Install everything necessary for OpenFace to compile. # Author: Daniyal Shahrokhian -# Date: 20170310 -# Version : 1.0 +# Date: 20170428 +# Version : 1.01 # Usage: bash install.sh # NOTES: There are certain steps to be taken in the system before installing # via this script (refer to README): Run @@ -17,47 +17,38 @@ set -e set -o pipefail -if [ $# -ne 1 ] +if [ $# -ne 0 ] then - echo "Usage: install.sh " + echo "Usage: install.sh" exit 1 fi -DIRECTORY="$1" -cd "$DIRECTORY" -echo "Installation under ${DIRECTORY}" - # Essential Dependencies echo "Installing Essential dependencies..." -sudo apt-get update -sudo apt-get install build-essential -sudo apt-get install llvm - -sudo apt-get update -sudo apt-get install clang-3.7 libc++-dev libc++abi-dev -sudo apt-get install cmake -sudo apt-get install libopenblas-dev liblapack-dev -sudo apt-get install git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev -sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev checkinstall +sudo apt-get -y update +sudo apt-get -y install build-essential +sudo apt-get -y install llvm +sudo apt-get -y install clang-3.7 libc++-dev libc++abi-dev +sudo apt-get -y install cmake +sudo apt-get -y install libopenblas-dev liblapack-dev +sudo apt-get -y install git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev +sudo apt-get -y install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev checkinstall echo "Essential dependencies installed." # OpenCV Dependency echo "Downloading OpenCV..." -if [ -d "opencv-3.1.0" ]; then - sudo rm -r "opencv-3.1.0" -fi - wget https://github.com/Itseez/opencv/archive/3.1.0.zip unzip 3.1.0.zip -rm 3.1.0.zip cd opencv-3.1.0 -mkdir build +mkdir -p build cd build echo "Installing OpenCV..." cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_SHARED_LIBS=OFF .. make -j4 sudo make install -cd "../.." +cd ../.. +rm 3.1.0.zip +sudo rm -r opencv-3.1.0 echo "OpenCV installed." # Boost C++ Dependency @@ -66,21 +57,10 @@ sudo apt-get install libboost-all-dev echo "Boost installed." # OpenFace installation -echo "Downloading OpenFace..." -if [ -d "OpenFace" ]; then - sudo rm -r "OpenFace" -fi - -git clone https://github.com/TadasBaltrusaitis/OpenFace.git -cd OpenFace -mkdir build -cd build echo "Installing OpenFace..." +mkdir -p build +cd build cmake -D CMAKE_BUILD_TYPE=RELEASE .. make -echo "OpenFace installed." - -# Installation test -echo "Testing installation..." -./bin/FaceLandmarkVid -f "../videos/changeLighting.wmv" -echo "Installation tested." +cd .. +echo "OpenFace successfully installed." \ No newline at end of file