manurare / 360monodepth

Code release for 360monodepth. With our framework we achieve monocular depth estimation for high resolution 360° images based on aligning and blending perspective depth maps.
https://manurare.github.io/360monodepth/
MIT License
159 stars 33 forks source link

Assertion arisen at blendIt.compute_linear_system_matrices #27

Closed kaimw closed 4 months ago

kaimw commented 4 months ago

Hi, thanks for the excellent work. I have successfully built the project. However, when running the example data, program crashed and an assertion have arisen as follow:

python: /usr/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h:396: Eigen::SparseMatrix<_Scalar, _Flags, _StorageIndex>::Scalar& Eigen::SparseMatrix<_Scalar, _Flags, _StorageIndex>::insertBackByOuterInner(Eigen::Index, Eigen::Index) [with _Scalar = double; int _Options = 0; _StorageIndex = int; Eigen::SparseMatrix<_Scalar, _Flags, _StorageIndex>::Scalar = double; Eigen::Index = long int]: Assertion (m_outerIndex[outer+1]-m_outerIndex[outer]==0 || m_data.index(m_data.size()-1)<inner) && "Invalid ordered insertion (invalid inner index)"' failed.

at step : # 4) blender to ERP image & output ERP disparity map and visualized image image

image

How can I solve this problem

manurare commented 4 months ago

Hi. Never seen this error before. Maybe you are using a different version of Eigen?

kaimw commented 4 months ago

Hi. Never seen this error before. Maybe you are using a different version of Eigen?

It's fixed since I changed eigen version from 3.4.0 to 3.3.9.

Thanks for your replay.