drsrinathsridhar / GRANSAC

Multi-threaded generic RANSAC implemetation
MIT License
311 stars 93 forks source link

The result of each run is random #8

Open vcitory opened 1 year ago

vcitory commented 1 year ago

Thanks for your contribution, I pulled down your code and tested it on my data; The slope and intercept of RANSAC implemented by Pytorch are stable at 'coef': [[-4.90434043]] intercept: [323.05705421]

The slope and intercept obtained by your code are random each time root@9e1aa64f75aa:/work/GRANSAC/build# make -j8 && ./LineFittingSample [100%] Built target Line Fitting Sample [ INFO ]: Maximum usable threads: 8 RANSAC took: 29.7956 ms. 1: Pt1:(59,16), Pt2:(53,38) slope: -3.666667, intercept: 232.333333 root@9e1aa64f75aa:/work/GRANSAC/build# make -j8 && ./LineFittingSample [100%] Built target Line Fitting Sample [ INFO ]: Maximum usable threads: 8 RANSAC took: 25.977 ms. 1: Pt1:(52,90), Pt2:(61,36) slope: -6.000000, intercept: 402.000000 root@9e1aa64f75aa:/work/GRANSAC/build# make -j8 && ./LineFittingSample [100%] Built target Line Fitting Sample [ INFO ]: Maximum usable threads: 8 RANSAC took: 26.7776 ms. 1: Pt1:(53,69), Pt2:(62,17) slope: -5.777778, intercept: 375.222222 root@9e1aa64f75aa:/work/GRANSAC/build# make -j8 && ./LineFittingSample [100%] Built target Line Fitting Sample [ INFO ]: Maximum usable threads: 8 RANSAC took: 23.9506 ms. 1: Pt1:(42,112), Pt2:(56,50) slope: -4.428571, intercept: 298.000000 root@9e1aa64f75aa:/work/GRANSAC/build# make -j8 && ./LineFittingSample [100%] Built target Line Fitting Sample [ INFO ]: Maximum usable threads: 8 RANSAC took: 27.3859 ms. 1: Pt1:(49,79), Pt2:(51,62) slope: -8.500000, intercept: 495.500000 root@9e1aa64f75aa:/work/GRANSAC/build# make -j8 && ./LineFittingSample [100%] Built target Line Fitting Sample [ INFO ]: Maximum usable threads: 8 RANSAC took: 29.1753 ms. 1: Pt1:(46,94), Pt2:(53,36) slope: -8.285714, intercept: 475.142857 root@9e1aa64f75aa:/work/GRANSAC/build# make -j8 && ./LineFittingSample [100%] Built target Line Fitting Sample [ INFO ]: Maximum usable threads: 8 RANSAC took: 23.9844 ms. 1: Pt1:(54,56), Pt2:(61,6) slope: -7.142857, intercept: 441.714286

Daubotue commented 1 year ago

您好,我是林旭军,您的邮件我已经收到,我会尽快回复的,谢谢!祝您生活愉快!