Skip to content
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

how can I run the demo on cpu? #36

Closed
junedgar opened this issue Jul 17, 2018 · 6 comments
Closed

how can I run the demo on cpu? #36

junedgar opened this issue Jul 17, 2018 · 6 comments

Comments

@junedgar
Copy link

Thank you for your great work.
I compiled the caffe-ssh only on cpu successfully, but when i ran import caffe, encountered error:Segmentation fault: 11.
systerm: macos
Can you give me some advices?

@exnx
Copy link

exnx commented Jul 24, 2018

were you able to get run the demo on a cpu?

@junedgar
Copy link
Author

@exnx I ran the demo on Mac, but very slowly.

@exnx
Copy link

exnx commented Jul 25, 2018

Great! Don’t suppose you can post your repo? I tried to run it but had all sorts of bugs, wasn’t sure which lines of code I needed to change to run on cpu. For example, it requires cuda installation now. Thanks so much!

@junedgar
Copy link
Author

junedgar commented Jul 26, 2018

@exnx there just change

SSH/demo.py

Line 44 in 3aeb296

caffe.set_device(args.gpu_id)
to caffe.set_mode_cpu(). But you must compile the ssh-caffe without CUDA. In addition,because the caffe version is too old, after you compiled the caffe on mac, you may encounter error segmentation fault :11 , when you import caffe. You can find the solution in #591.

@exnx
Copy link

exnx commented Jul 27, 2018

@junedgar Thanks for the response! Sorry to keep bugging you, but do you have any tips on how to compile the ssh-caffe without CUDA? I'm kind of new to CS and not sure how to do this. Any resources would be great! Thanks!

Eric

@DenisSouth
Copy link

Thank you for your great work.
I compiled the caffe-ssh only on cpu successfully, but when i ran import caffe, encountered error:Segmentation fault: 11.
systerm: macos
Can you give me some advices?
how you compiled the caffe-ssh on cpu? please give me any instruction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants