Last active
October 3, 2019 23:59
-
-
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
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
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
updated version of this here: https://gist.github.com/genekogan/e278b71dabe6fb7acdc268b8173e1f8c
cc @granthoff1107