Open carlodelpizzo opened 8 years ago
I am able to run neural-style on Hackintosh. I just never got the CUDA stuff working. How much memory does your system have?
16 GB RAM. I get the same bus error if i try with CUDA or not.
I cant really tell, but the CUDA backend seems to be fine. I do have my home directory on a different hard disk than my OS, but i dont think that would cause bus error?
As long as you are using -gpu 0 I think the CUDA stuff shouldn't matter. I was just mentioning for completeness.
Oops - I meant -gpu -1 to not use the GPU.
Gotcha.. any idea where i can start troubleshooting this bus error? im at a total loss
I would say first try it with -gpu -1. Does that work? If it does, it likely has something to do with CUDA which I abandoned trying to get working and switched to Ubuntu instead. Here the thread my thread on it: https://github.com/jcjohnson/neural-style/issues/91
No it doesnt work that way either. I have tried "th neural_style.lua -gpu 0 -print_iter 50" "th neural_style.lua -style_image
If i try with sudo, it doesnt give me bus error. but doesnt do anything else either:
That means it worked without the GPU. The fact that you had to do it as su means you probably have some permission errors. It should have written an output file. Do a command in that directory:
ls -l *.png
Hmm - or maybe not. How long does it take before returning to the command prompt? Try to add this flag:
-print_iter 10
Does it print out any messages then?
Its pretty quick. I took a screen-cap, and i got a Segmentation fault once. lol
Screen-cap: https://www.youtube.com/watch?v=11m5K-6JtE8
Log:
Last login: Sat May 28 00:39:22 on ttys000 Carlos-Pro-2:~ carlodelpizzo$ cd neural-style Carlos-Pro-2:neural-style carlodelpizzo$ th neural_style.lua -gpu 0 -print_iter 10 [libprotobuf WARNING google/protobuf/io/coded_stream.cc:537] 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. [libprotobuf WARNING google/protobuf/io/coded_stream.cc:78] The total number of bytes read was 574671192 Successfully loaded models/VGG_ILSVRC_19_layers.caffemodel Bus error: 10 Carlos-Pro-2:neural-style carlodelpizzo$ th neural_style.lua -gpu -1 -print_iter 10 [libprotobuf WARNING google/protobuf/io/coded_stream.cc:537] 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. [libprotobuf WARNING google/protobuf/io/coded_stream.cc:78] The total number of bytes read was 574671192 Successfully loaded models/VGG_ILSVRC_19_layers.caffemodel Segmentation fault: 11 Carlos-Pro-2:neural-style carlodelpizzo$ sudo !! sudo th neural_style.lua -gpu -1 -print_iter 10 [libprotobuf WARNING google/protobuf/io/coded_stream.cc:537] 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. [libprotobuf WARNING google/protobuf/io/coded_stream.cc:78] The total number of bytes read was 574671192 Successfully loaded models/VGG_ILSVRC_19_layers.caffemodel Carlos-Pro-2:neural-style carlodelpizzo$ th neural_style.lua -gpu -1 -print_iter 10 [libprotobuf WARNING google/protobuf/io/coded_stream.cc:537] 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. [libprotobuf WARNING google/protobuf/io/coded_stream.cc:78] The total number of bytes read was 574671192 Successfully loaded models/VGG_ILSVRC_19_layers.caffemodel Bus error: 10 Carlos-Pro-2:neural-style carlodelpizzo$ th neural_style.lua -gpu 0 -print_iter 10 [libprotobuf WARNING google/protobuf/io/coded_stream.cc:537] 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. [libprotobuf WARNING google/protobuf/io/coded_stream.cc:78] The total number of bytes read was 574671192 Successfully loaded models/VGG_ILSVRC_19_layers.caffemodel Bus error: 10 Carlos-Pro-2:neural-style carlodelpizzo$
You mentioned you have to run it as sudo to not get the bus error. Try that with the -print_iter flag.
i did that during the screen-cap. It does nothing?
Carlos-Pro-2:neural-style carlodelpizzo$ sudo !! sudo th neural_style.lua -gpu -1 -print_iter 10 [libprotobuf WARNING google/protobuf/io/coded_stream.cc:537] 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. [libprotobuf WARNING google/protobuf/io/coded_stream.cc:78] The total number of bytes read was 574671192 Successfully loaded models/VGG_ILSVRC_19_layers.caffemodel Carlos-Pro-2:neural-style carlodelpizzo$
Hmm - yeah I don't know then sorry. Did you follow the guide to install it? Did you get any errors when you did?
yeah i followed the guide. I ran into some problems. i dont remember exactly where. but i sorted through them and verified everything was installed correctly. Im not able to update xcode. I guess im just stuck :( I REALLY appreciate the help though!
I would try wiping everything out, try again, and report what problems you ran into. Perhaps something wasn't done correctly to get past them.
Im getting the same error
Moes-Mac-Pro:neural-style CBattleship$ th neural_style.lua -gpu -1 -print_iter 1 [libprotobuf WARNING google/protobuf/io/coded_stream.cc:537] 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. [libprotobuf WARNING google/protobuf/io/coded_stream.cc:78] The total number of bytes read was 574671192 Successfully loaded models/VGG_ILSVRC_19_layers.caffemodel Bus error: 10
sudo removes the bus error but it still stops. Anyone have any luck?
No luck.. :( I tried deleting everything and starting over. Maybe i didnt do it correctly. I didnt get any errors during reinstallation, but still same bus error.
Getting the same error using Torch with Lua 5.2.
Fixed it by using LuaJIT
in Torch.
The same thing on MacOS (ram is 16gm). Is there a way to solve this? I'm using Lua 5.1
Im on a Hackintosh, if that makes a difference?
…