Last active
February 21, 2018 14:01
-
-
Save ranieuwe/3eded982188389f8128af2f5da719d21 to your computer and use it in GitHub Desktop.
This file contains 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 | |
# export DEBIAN_FRONTEND=noninteractive | |
whoami | |
# Update APT and packages | |
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
sudo /anaconda/envs/py35/bin/pip install https://cntk.ai/PythonWheel/GPU-1bit-SGD/cntk-2.4-cp35-cp35m-linux_x86_64.whl | |
sudo /anaconda/envs/py35/bin/pip install --upgrade imageio | |
# Fix number of open files soft ulimit (ulimit -S -n 15000) | |
sudo echo "* soft nofile 15000" >> /etc/security/limits.conf | |
export CNTK=`getent passwd | cut -d: -f1 | tail -n 1` | |
sudo runuser -l $CNTK -c 'whoami' | |
sudo runuser -l $CNTK -c 'mkdir -p ~/cntk' | |
sudo runuser -l $CNTK -c 'git clone https://github.com/Microsoft/CNTK.git ~/cntk' | |
# Optional - prep the dataset | |
sudo runuser -l $CNTK -c 'ulimit -Sn 15000; python ~/cntk/Examples/Video/DataSets/UCF11/install_ucf11.py' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment