Skip to content

Instantly share code, notes, and snippets.

@genekogan
Last active October 3, 2019 23:59
Show Gist options
  • Save genekogan/5569833564ab21460b2af25357771796 to your computer and use it in GitHub Desktop.
Save genekogan/5569833564ab21460b2af25357771796 to your computer and use it in GitHub Desktop.
fix luarocks and install neural-style on a fresh paperspace ML-in-a-box template
# repair luarocks
sudo rm -rf ~/.cache/luarocks/
luarocks install loadcaffe
luarocks install cutorch
luarocks install cudnn
luarocks install cunn
# get cudnn (https://developer.nvidia.com/cudnn) and then (assuming cudnn 7.*) ...
git clone https://github.com/soumith/cudnn.torch.git -b R7 && cd cudnn.torch && luarocks make cudnn-scm-1.rockspec && cd .. && rm -rf cudnn.torch
# get neural-style
git clone https://github.com/jcjohnson/neural-style
cd neural-style
sh models/download_models.sh
@genekogan
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment