Giter Site home page Giter Site logo

A problem about nms about neural-motifs HOT 6 CLOSED

rowanz avatar rowanz commented on August 13, 2024
A problem about nms

from neural-motifs.

Comments (6)

alibabadoufu avatar alibabadoufu commented on August 13, 2024 5

For those who are still solving this issues, here are the steps you should consider to follow:

  1. Change SM_# (at places listed below) that suits your current GPU cards (see this for your reference)
  • lib/lstm/highway_lstm_cuda/make.sh (line 15)
  • lib/fpn/roi_align/src/cuda/Makefile (line 2)
  • lib/fpn/nms/src/cuda/Makefile (line 2)
  1. Afterwards, you should also delete *.o files (at places listed below) before you try recompiling nms, roi_align and highway_lstm)
  • lib/lstm/highway_lstm_cuda/src/highway_lstm_kernel.cu.o
  • lib/fpn/roi_align/src/cuda/roi_align.cu.o
  • lib/fpn/nms/src/cuda/nms.cu.o
  1. Run 'make' in your home directory.

That's all you need to do to change your faulty SM setup to the correct one.

from neural-motifs.

rowanz avatar rowanz commented on August 13, 2024

what GPU do you have? I think you might have to change the compilation flags; I hardcoded them for my Titan X setup.

from neural-motifs.

bobwan1995 avatar bobwan1995 commented on August 13, 2024

Thanks for your kind answering.
My GPU is Tesla P100, so I tried to make the cuda file with /usr/local/cuda/bin/nvcc -c -o file.cu.o file.cu --compiler-options -fPIC -gencode arch=compute_60,code=sm_60, but it still fails with error cudaCheckError() failed : no kernel image is available for execution on the device. I think it might be compilation problem. Except for changing all sm_61 and compute_60 to *_61, do I need to change other places? I've replaced nms and roi_align with other's codes and it works. Thank you a lot!

from neural-motifs.

rowanz avatar rowanz commented on August 13, 2024

Yeah, you'll need to change the LSTM compilation: https://github.com/rowanz/neural-motifs/blob/master/lib/lstm/highway_lstm_cuda/make.sh

I believe that should be everything. Also, have you verified that pytorch usually runs on your machine?

from neural-motifs.

bobwan1995 avatar bobwan1995 commented on August 13, 2024

I use pytorch 0.3.1. Now I can run your code, thank you!

from neural-motifs.

YiwuZhong avatar YiwuZhong commented on August 13, 2024

Hi, I've met the same problem using Tesla P100. So did you solve your problem only changing from _61 to _60 in 3 files (nms, roi_align and highway_lstm_cuda)?
And you said "replaced nms and roi_align with other's codes", could you please tell what "other's codes" did you use to solve the problem? Thanks. :D

from neural-motifs.

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.