-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
loadcaffe requires CUDA #4
Comments
Hrm, that's kind of annoying. The loadcaffe rockspec lists cunn and inn as dependencies, but they aren't actually imported anywhere inside that project. You should be able to work around it by manually installing loadcaffe like this:
I don't have a setup handy to easily test this, so I haven't tried it. Let me know if it works. |
Wow, that worked great! Thanks a lot! I just tried to run it with the default values using the CPU: th neural_style.lua -gpu -1 However, I get some strange error in VGG_ILSVRC_19_layers_deploy.prototxt.cpu.lua:7 about ceil() and a nil value: [libprotobuf WARNING google/protobuf/io/coded_stream.cc:505] Reading dangerously large protocol message. If the message turns out to be larger than 1073741824 bytes, parsing will be halted for security reasons. To increase the limit (or to disable these warnings), see CodedInputStream::SetTotalBytesLimit() in google/protobuf/io/coded_stream.h. |
The row it's referring to in VGG_ILSVRC_19_layers_deploy.prototxt.cpu.lua is this: Might be related to loadcaffe: torch/tutorials#28 |
TL;DR this should now be fixed in cba886c with a horrible hack. Longer explanation: The problem is that That's great. The problem is that To do this, we simply remove all instances of the string ":ceil()" from the .prototxt.lua files generated by |
Really sorry, it seems like I was using an old version of torch. I found this changelog from torch/nn which seemed to add support for ceil() in nn. torch/nn@929cfc5 After I updated torch to the latest version it seems to work, even without your fix. So sorry for causing you extra work! |
No worries - it was still a fun problem to solve! |
Hi,
I tried to install this on a Virtual Machine from Windows, which only supports CPU. Unfortunately, loadcaffe fails because it seems to require some CUDA-only libraries.
When I run "luarocks install loadcaffe", it says "missing dependencies ccn2, cunn and inn" and then automatically tries to install ccn2 and cutorch and fails with "CMake Error at /usr/share/cmake-2.8/Modules/FindCUDA.cmake:548 (message): Specify CUDA_TOOLKIT_ROOT_DIR".
If there's no way past this, maybe you could add a note that loadcaffe requires CUDA, for other Windows VM users.
Thanks, and keep up the good work!
The text was updated successfully, but these errors were encountered: