GithubHelp home page GithubHelp logo

error evaluate about second.pytorch HOT 9 OPEN

traveller59 avatar traveller59 commented on July 21, 2024
error evaluate

from second.pytorch.

Comments (9)

traveller59 avatar traveller59 commented on July 21, 2024

the sparseconvnet file modification only needed when you evaluate pretrained models. you Need to use tools like pdb or gdb to locate the segfault location, i can't solve this with only segfault information.

from second.pytorch.

poodarchu avatar poodarchu commented on July 21, 2024

I still got "(gdb) backtrace
#0 0x00007fff341d10df in pybind11::cpp_function::dispatcher(_object*, _object*, _object*) ()
from /home/users/benjin.zhu/data2/second/second.pth/second/core/non_max_suppression/nms.so
#1 0x0000555555662b94 in _PyCFunction_FastCallDict ()
#2 0x00005555556f267c in call_function ()
#3 0x0000555555714cba in _PyEval_EvalFrameDefault ()
#4 0x00005555556ec70b in fast_function ()"

from second.pytorch.

poodarchu avatar poodarchu commented on July 21, 2024

I've fixed the above problem.
But now I got trouble with sparseconvnet, after I compile it with gcc 5.4 and pytorch 1.0, it said:
Installed /data-sdb/benjin.zhu/libs/anaconda3.6/lib/python3.6/site-packages/sparseconvnet-0.2-py3.6-linux-x86_64.egg Processing dependencies for sparseconvnet==0.2 Finished processing dependencies for sparseconvnet==0.2

but then I tried python examples/hello-world.py, I got
$ python examples/hello-world.py Traceback (most recent call last): File "examples/hello-world.py", line 30, in <module> input = scn.InputBatch(2, inputSpatialSize) File "/data-sdb/benjin.zhu/second/SparseConvNet/sparseconvnet/inputBatch.py", line 19, in __init__ self.metadata = Metadata(dimension) File "/data-sdb/benjin.zhu/second/SparseConvNet/sparseconvnet/metadata.py", line 17, in Metadata return getattr(sparseconvnet.SCN, 'Metadata_%d' % dim)() AttributeError: module 'sparseconvnet.SCN' has no attribute 'Metadata_2'

This stucks me for a long time.

from second.pytorch.

traveller59 avatar traveller59 commented on July 21, 2024

I have no idea, but someone asked me previously:

The Metadata_3 problem is caused by wrong import of sparseconvnet.
Actually I shouldn't add the path of SparseConvNet to PYTHONPATH, which will cause the wrong import of sparseconvnet.

I am using older sparseconvnet edf89af339ee929d9416f3509ff405450949f606 with pytorch 0.4.1.

from second.pytorch.

poodarchu avatar poodarchu commented on July 21, 2024

I am using older sparseconvnet edf89af339ee929d9416f3509ff405450949f606 with pytorch 0.4.1.

That's very userful .

from second.pytorch.

TWJianNuo avatar TWJianNuo commented on July 21, 2024

You forgot to change corresponding documents in Sparsenet as instructed in readme.

from second.pytorch.

songanz avatar songanz commented on July 21, 2024

I have no idea, but someone asked me previously:

The Metadata_3 problem is caused by wrong import of sparseconvnet.
Actually I shouldn't add the path of SparseConvNet to PYTHONPATH, which will cause the wrong import of sparseconvnet.

I am using older sparseconvnet edf89af339ee929d9416f3509ff405450949f606 with pytorch 0.4.1.

In the readme file, you asked that we need to use pytorch 1.0. So do we need to downgrade to pytorch 0.4.1 and install sparseconvnet ?

from second.pytorch.

traveller59 avatar traveller59 commented on July 21, 2024

@songanz The SparseConvNet is deprecated in newest code. you need to use spconv instead.

from second.pytorch.

defypp avatar defypp commented on July 21, 2024

I still got "(gdb) backtrace
#0 0x00007fff341d10df in pybind11::cpp_function::dispatcher(_object*, _object*, _object*) ()
from /home/users/benjin.zhu/data2/second/second.pth/second/core/non_max_suppression/nms.so
#1 0x0000555555662b94 in _PyCFunction_FastCallDict ()
#2 0x00005555556f267c in call_function ()
#3 0x0000555555714cba in _PyEval_EvalFrameDefault ()
#4 0x00005555556ec70b in fast_function ()"
==
I debug my signal sigsegev, Segment falut error, and got same output with you.
could you tell us how to solve this problem? I use torch1.0 + cuda 9.0 +gcc 4.9.2.

from second.pytorch.

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.