Skip to content

Instantly share code, notes, and snippets.

@fedden
Last active April 14, 2018 03:35
Show Gist options
  • Save fedden/4706e3e563186b4864bea6a5fc76edb8 to your computer and use it in GitHub Desktop.
Save fedden/4706e3e563186b4864bea6a5fc76edb8 to your computer and use it in GitHub Desktop.
facegan_cloud.sh
sudo apt-get update -y
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.0.176-1_amd64.deb
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/libcudnn7_7.0.5.15-1+cuda9.0_amd64.deb
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/libcudnn7-dev_7.0.5.15-1+cuda9.0_amd64.deb
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/libnccl2_2.1.4-1+cuda9.0_amd64.deb
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/libnccl-dev_2.1.4-1+cuda9.0_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1604_9.0.176-1_amd64.deb
sudo dpkg -i libcudnn7_7.0.5.15-1+cuda9.0_amd64.deb
sudo dpkg -i libcudnn7-dev_7.0.5.15-1+cuda9.0_amd64.deb
sudo dpkg -i libnccl2_2.1.4-1+cuda9.0_amd64.deb
sudo dpkg -i libnccl-dev_2.1.4-1+cuda9.0_amd64.deb
echo "export PATH=/usr/local/cuda-9.0/bin${PATH:+:${PATH}}" >> ~/.bashrc
echo "export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" >> ~/.bashrc
sudo apt-get update -y
sudo apt-get install cuda=9.0.176-1 -y
sudo apt-get install libcudnn7-dev -y
sudo apt-get install libnccl-dev -y
rm *.deb
sudo apt-get install htop -y
sudo apt-get install python3-pip -y
sudo apt-get install python3-tk -y
sudo pip3 install http://download.pytorch.org/whl/cu90/torch-0.3.1-cp35-cp35m-linux_x86_64.whl
sudo pip3 install torchvision
sudo pip3 install tensorflow-gpu
sudo pip3 install scipy Pillow tensorboardX tqdm matplotlib
cd ~
scp [email protected]:/home/students/lfedd001/cleaned_faces.tar.gz .
tar xzvf cleaned_faces.tar.gz
rm cleaned_faces.tar.gz
scp [email protected]:/home/students/lfedd001/pggan-pytorch.tar.gz .
tar xzvf pggan-pytorch.tar.gz
rm pggan-pytorch.tar.gz
mkdir ~/pggan-pytorch/data
mv cleaned_faces ~/pggan-pytorch/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment