Skip to content

Instantly share code, notes, and snippets.

@hzhan147
hzhan147 / install-cudnn.sh
Created March 15, 2019 07:16
Install CUDNN for CUDA 10.1
#Download deb file from :
# https://developer.nvidia.com/compute/machine-learning/cudnn/secure/v7.5.0.56/prod/10.1_20190225/Ubuntu14_04-x64/libcudnn7_7.5.0.56-1%2Bcuda10.1_amd64.deb
# https://developer.nvidia.com/compute/machine-learning/cudnn/secure/v7.5.0.56/prod/10.1_20190225/Ubuntu14_04-x64/libcudnn7-dev_7.5.0.56-1%2Bcuda10.1_amd64.deb
sudo dpkg -i libcudnn7_7.5.0.56-1+cuda10.1_amd64.deb
sudo dpkg -i libcudnn7-dev_7.5.0.56-1+cuda10.1_amd64.deb
@hzhan147
hzhan147 / install-cuda.sh
Last active March 15, 2019 07:23
Install Nvidia CUDA
#Download this CUDA deb https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda-repo-ubuntu1404-10-1-local-10.1.105-418.39_1.0-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1404-10-1-local-10.1.105-418.39_1.0-1_amd64.deb
sudo apt-key add /var/cuda-repo-10-1-local-10.1.105-418.39/7fa2af80.pub
sudo apt-get update
sudo apt-get install cuda
export PATH=/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2019.1${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64\
${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
@hzhan147
hzhan147 / install-OpenCV3.4.5.sh
Last active March 15, 2019 07:42
Install Opencv3.4.5 on Ubuntu 14.04
# Download Opencv from https://github.com/opencv/opencv/archive/3.4.5.zip
# Extract the zip file into ~/ directory, in this case we have a folder ~/opencv-3.4.5/
# https://docs.opencv.org/3.4.5/d7/d9f/tutorial_linux_install.html
sudo apt-get install build-essential
sudo apt-get install cmake 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
sudo apt-get install cmake-qt-gui
cd ~/opencv-3.4.5/
mkdir build
cd build
@hzhan147
hzhan147 / install-augmentor.sh
Created March 15, 2019 06:58
This shell script will install image augmentor tool for annotation
sudo apt-get install python-pip
sudo -H pip install augmentor
@hzhan147
hzhan147 / install-opencv.sh
Created March 14, 2019 06:36 — forked from Piyush3dB/install-opencv.sh
OpenCV installation Ubuntu 14.04
# KEEP UBUNTU OR DEBIAN UP TO DATE
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get -y autoremove
# INSTALL THE DEPENDENCIES