Last active
October 4, 2021 11:32
-
-
Save bobvanluijt/38cb3db5b1ad0c7af1da16d1a0496eaa to your computer and use it in GitHub Desktop.
Install hyperGAN with: CUDA and Tensorflow 1.0 on Ubuntu 16.04 + Python 3.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Tensorflow installation bash for Ubuntu 16.04 for x86_64 - Python 2.7 | |
# Set locale (comment when not needed) | |
sudo sh -c "echo 'LC_ALL=en_US.UTF-8\nLANG=en_US.UTF-8' >> /etc/environment" | |
# Install CUDA | |
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb | |
mv cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb.deb | |
sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb.deb | |
sudo apt-get update | |
sudo apt-get install cuda -y | |
# install https://developer.nvidia.com/cudnn | |
tar zxvf cudnn-8.0-linux-x64-v5.1.tgz | |
cd cuda | |
sudo cp -P include/cudnn.h /usr/include | |
sudo cp -P lib64/libcudnn* /usr/lib/x86_64-linux-gnu/ | |
sudo chmod a+r /usr/lib/x86_64-linux-gnu/libcudnn* | |
# Install PIP | |
sudo apt-get install python3-pip -y | |
sudo pip install --upgrade pip | |
# Set python 3 symlink | |
sudo rm /usr/bin/python | |
sudo ln -s /usr/bin/python3.5 /usr/bin/python | |
# Install TF (http://tflearn.org/installation/) | |
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.0.0-cp35-cp35m-linux_x86_64.whl | |
sudo pip install $TF_BINARY_URL | |
# Install hypergan | |
pip3 install scipy --upgrade | |
pip3 install pillow --upgrade | |
pip3 install hyperchamber --upgrade | |
pip3 install flask --upgrade | |
pip3 install flask_cors --upgrade | |
pip3 install hypergan --upgrade |
I have made a fork with these changes here
https://gist.github.com/qwazwsx/a9fd59b5dc725c4731d911c0f78e3e8d
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello thanks for this awesome scripts. I got an error "ImportError: No module named 'tensorflow'" I fixed this by changing pip to pip3 at line 34.