Coder Social home page Coder Social logo

Comments (6)

ClementPinard avatar ClementPinard commented on July 26, 2024

It is very surprising that your array is full of zeros.

In the mean time, since the system tries compute the relative difference between 0 and 0, you are bound to have weird numbers, even if the absolute eror is practically 0.

Did you change the check.py file especially at line 75 and 79 ?

from pytorch-correlation-extension.

ysnan avatar ysnan commented on July 26, 2024

Hi, I did not change anything of that file. I installed the package and did the checking right away. I just guess that the problem comes from the incompatibility with the new version of pytorch.

from pytorch-correlation-extension.

ClementPinard avatar ClementPinard commented on July 26, 2024

how did you get the check.py file ? Did you clone the github repo ? Is it up to date ?

I just tried with pytorch 1.4 with a fresh install and it worked

from pytorch-correlation-extension.

ysnan avatar ysnan commented on July 26, 2024

I also tried to use pytorch 1.4 with a fresh install, use git install spatial-correlation-sampler to install the package and use git clone https://github.com/ClementPinard/Pytorch-Correlation-extension to get the check.py. It turns out to be another problem:

$ python check.py forward
Traceback (most recent call last):
File "check.py", line 8, in
from spatial_correlation_sampler import SpatialCorrelationSampler
File "/home/ysnan/anaconda3/envs/torch_latest/lib/python3.6/site-packages/spatial_correlation_sampler/init.py", line 1, in
from .spatial_correlation_sampler import SpatialCorrelationSampler, spatial_correlation_sample
File "/home/ysnan/anaconda3/envs/torch_latest/lib/python3.6/site-packages/spatial_correlation_sampler/spatial_correlation_sampler.py", line 6, in
import spatial_correlation_sampler_backend as correlation
ImportError: /home/ysnan/anaconda3/envs/torch_latest/lib/python3.6/site-packages/spatial_correlation_sampler_backend.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe26detail37_typeMetaDataInstance_preallocated_32E

I guess the problem came from the incompatibility with gcc version?

from pytorch-correlation-extension.

ClementPinard avatar ClementPinard commented on July 26, 2024

I have the same gcc version as you. 🤔
I guess here the problem is deeper that just this module.

Can you try to compile the official tutorial and see if it works ?
https://github.com/pytorch/extension-cpp

from pytorch-correlation-extension.

ysnan avatar ysnan commented on July 26, 2024

The problem has been solved! Following the guideline you referred, I used python setup.py install to install the package, it passed with no error. But the weird thing is why the pip approach did not work.

Anyway, thank you for your help!

from pytorch-correlation-extension.

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.