SETUP for ARTISTIC-VIDEOS on Ubuntu 16.04 / 180923 https://github.com/manuelruder/artistic-videos
-
Sign up for an Nvidia developer account to get CUDA and CuDNN. You probably want CUDA 8 and CuDNN 5.
-
Install CUDA. DO NOT update Nvidia graphics driver when asked! (It'll break Ubuntu.) DO use a symlink for the location when asked--that lets you have multiple CUDA/CuDNN installations on your machine.
-
If you accidentally updated the graphics driver, you'll appear to be locked out of Ubuntu. Don't panic; it just can't launch the GUI past your login screen. Boot to terminal and remove all your Nvidia drivers with:
sudo apt-get purge nvidia*
- Update Ubuntu's Nvidia graphics driver properly following these instructions: http://askubuntu.com/questions/451221/ubuntu-14-04-install-nvidia-driver
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo ubuntu-drivers autoinstall
sudo reboot
-
Reboot and confirm that the Nvidia driver install is OK.
-
Follow these instructions to finish up your CUDA install: http://www.r-tutor.com/gpu-computing/cuda-installation/cuda7.5-ubuntu
-
Install CuDNN following these directions: https://groups.google.com/forum/#!msg/caffe-users/nlnMFI0Mh7M/8Y4z1VCcBr4J https://www.cs.cmu.edu/~ymiao/pdnntk/cuDNN.html
sudo cp lib64/lib* /usr/local/cuda/lib64/
sudo cp include/cudnn.h /usr/local/cuda/include/
- Add these lines to your local .bashrc file:
export CPATH=/usr/local/cuda/lib64:$CPATH
export LIBRARY_PATH=/usr/local/cuda/lib64:$LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
- Install ffmpeg: http://www.faqforge.com/linux/how-to-install-ffmpeg-on-ubuntu-14-04/ ffmpeg is required, but since you'll be working with videos, you might also find it helpful to install the VLC video player and the OpenShot video editor.
sudo apt-get install ffmpeg
- Install Torch: http://torch.ch/docs/getting-started.html
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch
bash install-deps
./install.sh
source ~/.bashrc
- Install Torch packages using the luarocks package manager: https://raw.githubusercontent.com/szagoruyko/loadcaffe/master/README.md https://github.com/e-lab/torch-toolbox/blob/master/Tutorials/Install-CUDNN-on-Jetson-TK1.md
luarocks install cudnn
luarocks install cunn
luarocks install loadcaffe
-
Download DeepFlow and DeepMatching; add just the executables to the project directory.
-
Run the model download script in Artistic-Videos to get the model.
-
...and go!