Giter VIP home page Giter VIP logo

Comments (4)

ShaoqingRen avatar ShaoqingRen commented on June 21, 2024

It seems that your Matlab does not have the over overloading of imresize for gpuArray.

A simple modification is that, you can commente out
Line 52, 76 in script_faster_rcnn_demo.m
"im = gpuArray(im);"

Thus the operation of image resize will use cpu instead of gpu. A side effect is slower testing speed.

from faster_rcnn.

xmubingo avatar xmubingo commented on June 21, 2024

@ShaoqingRen hi, i also commented Line 28,29, then succeeded. Thanks!
---K40----
001763.jpg (500x375): time 0.268s (resize+conv+proposal: 0.204s, nms+regionwise: 0.064s)
004545.jpg (500x375): time 0.272s (resize+conv+proposal: 0.206s, nms+regionwise: 0.066s)
000542.jpg (500x375): time 0.245s (resize+conv+proposal: 0.207s, nms+regionwise: 0.038s)
000456.jpg (500x375): time 0.269s (resize+conv+proposal: 0.208s, nms+regionwise: 0.061s)
001150.jpg (500x375): time 0.261s (resize+conv+proposal: 0.208s, nms+regionwise: 0.053s)
mean time: 0.263s

from faster_rcnn.

HaozhiQi avatar HaozhiQi commented on June 21, 2024

@ShaoqingRen Hi, I also encounter this problem this morning. The reason I wrote this comment is that I found even after I comment line 52,76 and line 28, 29 (as suggest by @xmubingo), there is still an error in the num.m. Actually the error occurs on line 34

nms_gpu_mex(single(boxes)', double(overlap));

and line 43

nms_mex(double(boxes), double(overlap));

both say the function is undefined.

Therefore I thought if I miss some installation steps? I'm using matlab 2013a and I'm sure to execute make matcaffe with no errors (caffe in this repository).

And currently my solution is using this file https://github.com/rbgirshick/fast-rcnn/blob/master/matlab/nms.m to temporarily replace nms.m. (Plus adding a peudo parameter use_gpu) Any suggestions?

Thank you for your time!

from faster_rcnn.

moreaba avatar moreaba commented on June 21, 2024

@oh233

You have this problem because matlab can not find the mex file that contains the function.
so the file in "functions/nms/nms_mex.cpp" and "functions/nms/nms_gpu_mex.cu" need to be compiled!

you can compile them by running the script called: "faster_rcnn_build.m" in the home directory as mentioned in the README.md

See Snapshot
Undefined function 'nms_mex' for input arguments of type 'double'.

from faster_rcnn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.