-
Notifications
You must be signed in to change notification settings - Fork 462
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
Classification performance is very slow like half a minute on AWS G2 instance? #25
Comments
Because you are using CPU. Change the setting to make it running on GPU please. |
Alright, I saw the line that says set_mode_gpu and uncommented it but however now it says
Could this be a problem of the |
I found out that The performance I got with GPU enabled is now better, 5.24521899223 seconds. Still, I expect something faster since I think usually classification is faster than this since I heard mobile device can also use the trained network efficiently. How long does it take for you? |
Hi guys, I have the same situation, taking about 30 seconds to finish. Note: I did not uncomment set_mode_gpu, when I did it gave me the same error as 5argon. |
Hi. @abdalafamsee This means the code is running entirely on single CPU. The current code on this repository works with cudnn version <=3. But you should make the code works with other branch: https://github.com/mtourne/crfasrnn or even integrate the multi-stage-mean-field layer with the caffe upstream code. |
@bittnt thank you I will give that one a try and report back with results |
@bittnt I did not have success.
It still took 30 seconds to finish. What else do you suggest I look to make sure its running on the GPU? I ran cmake to see the configurations and versions of everything, this is the output: ******************* Caffe Configuration Summary ******************* -- Build type : Release-- BUILD_SHARED_LIBS : ON -- CPU_ONLY : OFF-- Dependencies: -- CUDA : Yes (ver. 6.5)-- NVIDIA CUDA: -- cuDNN : Yes-- Python: -- NumPy : /usr/local/lib/python2.7/dist-packages/numpy/core/include (ver 1.9.2)-- Documentaion: -- config_file :-- Install: -- Install path : /var/www/crfasrnn_oringal/caffe-crfrnn/install-- Configuring done |
Check the comments :#13 To activate gpu mode you can just add a True at the end of the Segmenter On Wed, Feb 17, 2016 at 7:01 PM abdalafamsee notifications@github.com
|
@bittnt Great I think it worked however I have a new error: Would this be associated with the warning: This is what I am working with, on EC2 GPU instance: 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma](rev 02) |
Nope, nothing to do with that message. This tells u that your GPU memory is
|
Hi, I have pulled and compiled the caffe you suggested but i get: I got https://github.com/BVLC/caffe, placed it inside crfasrnn, updated Makefile. then make and make pycaffe. |
@dalafer This is because the python wrapper are different in the customized caffe version in crf-rnn. You need to add those module such as Segmenter.py to the latest caffe. There are some changes recently in caffe python interface. |
Thank you I got it. |
These were my steps:
|
Um.. it means the program says has (Anyway this is not related to the speed of G2 instances, why not make a new thread? I might as well close this since we found out that CPU -> GPU is the culprit) |
Hi, @dalafer |
@Eniac-Xie did you read the author's paper yet? I think multi_stage_meanfield is the heart of this paper as this should be the RNN modeled after CRF that has been placed directly after FCN-8s. Since this is the new innovation by the paper, naturally it would not exist in the normal version of Caffe. |
thank you @5argon. I have read the paper. But I want to make sure that whether BVLC/caffe has merge the multi_stage_meanfield or anybody has release a new version caffe with multi_stage_meanfield. |
Good afternoon, Sorry to bother you but actually I did not get how you finally succeed to add Segmenter.py in your project.. Could you tell me how you proceed please ? I did not find such a file in the GitHub documents. So far, I have installe caffe for windows (I am really new to programming and I have limited time so I cannot learn to use Ubuntu), installed all the dependencies, build caffe, pycaffe, and all the others but this file -Segmenter.py- is still missing. Thank you in advance for your help ! |
@bittnt Sorry guess I missed it, thank you very much ! |
@bittnt Hello, sorry to bother you again. Actually I have tried many things since yesterday but given that I am quite new to this, I am kind lost about what I should try.. Others things that can be leads:
I think that I have said all that might be important to know; Thank you in advance for your help ! |
I'm able to complete the classification in about 4.5 s with a K80 or a P100. |
I looked through the paper but I could not find any speed benchmark that I can compare with. I tried crfasrnn_demo.py on a single instance of g2.2xlarge Amazon AWS and got unexpectedly slow classification speed and wondering if something is wrong or not.
The code below in crfasrnn_demo.py that I modified to time :
The result is 29.7011039257 seconds. What is the average time required for this demo?
The text was updated successfully, but these errors were encountered: