Skip to content

Instantly share code, notes, and snippets.

@ranieuwe
Last active February 21, 2018 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ranieuwe/3eded982188389f8128af2f5da719d21 to your computer and use it in GitHub Desktop.
Save ranieuwe/3eded982188389f8128af2f5da719d21 to your computer and use it in GitHub Desktop.
#!/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