Comments (8)
I don't have the time current (due to job constraints) to do a clean fix for this. Feel free to take it and make a PR. @koide3 @cdb0y511
from fast_gicp.
I actually tracked this down to the RegularizationMethod parameter. When its set to Planar, the default the code does not work on either my sample set, or your provided data.
If I change to Frobenius it seems to work fine.
from fast_gicp.
I'm not really sure, but I guess it is a problem on Eigen::SelfAdjointEigenSolver
used in the PLANE regularization that may have a problem on some GPUs. What GPU are you using? Can you insert the following test code just below eig.computeDirect(cov);
to see if eigenvalue decomposition is working properly?
// --- test code ---
Eigen::Vector3f values = eig.eigenvalues();
Eigen::Matrix3f v_diag = values.asDiagonal();
Eigen::Matrix3f v_inv = eig.eigenvectors().inverse();
Eigen::Matrix3f C_ = eig.eigenvectors() * v_diag * v_inv;
if((cov - C_).array().abs().maxCoeff() > 1e-3) {
printf("wrong SVD result\n");
printf("--- C ---\n");
for(int i=0; i<3; i++) {
for(int j=0; j<3; j++) {
printf("%.6f ", cov(i, j));
}
printf("\n");
}
printf("--- C_ ---\n");
for(int i=0; i<3; i++) {
for(int j=0; j<3; j++) {
printf("%.6f ", C_(i, j));
}
printf("\n");
}
}
// ---
from fast_gicp.
GPU is RTX8000
This code did not trigger to trap anything, I tried to go through all the covariance stuff and look for NAN or INF and I am not seeing it show up anywhere...
from fast_gicp.
I also tried reverting the plane code to the commented section and use covariance_regularization_svd() and still get the same result. Maybe that provides any more useful information....
from fast_gicp.
I found a fix for this. rzhao88@2159f39
Comment is wrong, I was using CUDA 11.5
from fast_gicp.
I found a fix for this. rzhao88@2159f39
Comment is wrong, I was using CUDA 11.5
Hi, @rzhao88
I have tested it on CUDA 11.5. It fixes sometimes the covariance stuff return NAN or INF issues in the Cuda version.
I think you could make a PR, the
src/fast_gicp/cuda/covariance_regularization.cu
fix it.
Thanks, @rzhao88
I think you @koide3 may be interested in it.
from fast_gicp.
I have the same problem. Do you guys have any ideas?
from fast_gicp.
Related Issues (20)
- Crash while using VGICP
- how to take fast_gicp in my own code? HOT 3
- About NeighborSearchMethod HOT 1
- got "for_each: failed to synchronize" in every position using "thrust::for_each" HOT 2
- doc request: aligned output point cloud must be different from source and target HOT 1
- Registration score gradually diverges. HOT 3
- cudaErrorIllegalAddress: an illegal memory access was encountered HOT 1
- I want getTransformationProbability() function in ndt_cuda HOT 1
- Unexpected Performance: Single-Threaded Faster than Multi-Threaded in Point Cloud Alignment HOT 2
- Why is the **weight** the square root of the number of points? HOT 4
- the calculation of **rho** in step_lm() seems wrong HOT 2
- set step size on ndt_cuda
- Optimization Problem for Fast GICP (OpenMP)
- any bug in ndt_cuda? HOT 1
- core dumped HOT 1
- How to implement the pcl version of GICP?
- can't build fast_gicp.lib HOT 2
- fast_gicp iteration HOT 1
- Fast-gicp DO HOT 1
- Fast-gicp DO NOT 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 fast_gicp.