Comments (6)
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.
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.
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.
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.
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.
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)
- ROCm support?
- Issue with Computing Complete Pixel-to-Pixel Correlation HOT 2
- IndexError: list index out of range HOT 5
- python setup.py install failed HOT 4
- Successfully installed, but unable to import in the code. HOT 4
- error: command 'D:\\Tool\\cuda11.3\\bin\\nvcc.exe' failed with exit code 1 HOT 5
- Hello, my error has not been completely resolved. On the latest version of vscode, once I referenced this package, I couldn't use the debug feature and had to run it directly. But sometimes running it directly throws an error. HOT 4
- Three months ago, I can use the pip command to compile this, but now it's not working. HOT 1
- Compile once and run on other GPU(different computational capacities) HOT 1
- failed to pip install spatial-correlation-sampler
- failed to python setup.py install HOT 1
- pip install fails with "No CUDA runtime is found" despite existing CUDA toolkit installation HOT 1
- some errors with python setup.py install HOT 1
- python setup.py install failed HOT 1
- Hello,I want to ask python setup.py install failed HOT 3
- OSError: CUDA_HOME environment variable not set when python setup.py in Dockerfile HOT 5
- failed to install spatial-correlation-sampler HOT 1
- torch.compile fullgraph=True HOT 6
- Fail to use "python setup.py install" to install spatial-correlation-sampler HOT 4
- Issues with CUDA 11.7 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch-correlation-extension.