-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Running without CUDA (CPU only) #25
Comments
you can install cuda without gpu. haven't tried that though. |
Current codes run fine on CPU, need to change NMS mode to CPU only.
…On Tue, Mar 28, 2017 at 1:21 PM, Xinlei Chen ***@***.***> wrote:
you can install cuda without gpu. haven't tried that though.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAM4K-eGWG5K1k8TuAhbGaKNmLFFny0Uks5rqWu7gaJpZM4Mkvv3>
.
|
Ahh I see. thanks for the update. Closing. |
@jwnsu Could you please describe how to run it on CPU in detail? Thank you. |
Finally it shows: You need to:
|
@guotong1988 Can you open a PR with a CPU option.. could be useful for users with GPU memory limits.. |
I think you can add a parameter in commandline to force CPU. i.e.
|
@guotong1988 |
@guotong1988 |
@caunion's comment contains all that you need to do to force CPU. No need to change nms_wrapper.py or setup.py. Just tried it myself! |
@endernewton great implementation of Faster RCNN. Really appreciate it. |
So what is the error msg?
…Sent from my iPhone
On Jun 5, 2017, at 16:27, Joel Iventosch ***@***.***> wrote:
@endernewton great implementation of Faster RCNN. Really appreciate it.
Question though: I can't get this to work on CPU only. I've read through the above and tried those suggestions but can't seem to get it to work. @caunion @guotong1988 has anybody had success in making this work on CPU? If so, how?
Thanks in advance for any suggestions. Much appreciated!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
use this command |
@riadhayachi |
The nms_wrapper.py checks the model.config structure if USE_GPU_NMS flag is found. So, no need to change anything in nms_wrapper.py. Just set the flag in demo.py. Add the line |
Hi, I would like to deploy this great project without GPU (I do not have GPU on my laptop). However, after reading all the threads above, I am still stuck in Step 3 as described on the project page w.r.t Installation:
It throws the error message as follows,
Any idea/suggestion how to proceed? Thanks. Regards, Hang |
@hang81 try this:
This is what I used when debugging locally on my machine that has cpu only. I named it setup_cpu.py and had it next to the included setup.py and used one or the other based on if gpu machine or cpu only machine. Note this does not include the import lines bc some are custom my specific project, but...for me this worked for running the setup code for cython extensions when no gpu avail. Hope it helps! |
This works thanks @joeliven. But I think you need to remove the 2nd Extension since 'nms.pyx' doesn't exist, at least in my repo. |
No problem @lshe7842 , glad it worked for you! |
@joeliven sh make.sh My computer is not installed CUDA and nvcc,So if you change make.sh |
Based on @shuang1330‘s answer in #72, what I have done to support running with CPU on Mac OS:
|
hi , i have a issue in running demo.py on cpu in ubuntu 16.04, Error: During handling of the above exception, another exception occurred: Traceback (most recent call last): Caused by op 'save/RestoreV2_529', defined at: OutOfRangeError (see above for traceback): Read less bytes than requested |
I used the method commented by grimfix on 30 Nov 2017 , and it worked without gpu.The comment is on the front. |
@Nioolek Do you use |
@endernewton Alright,I find this issue is about tf-faster-rcnn, but in pytorch-faster-rcnn, we should use |
Can it run under python3.6? |
Hi,
I am just wondering if there is a way of running this model on a machine without a GPU? Running
make
attempts to find CUDA.Thanks!
The text was updated successfully, but these errors were encountered: