darglein / ADOP

MIT License
2.02k stars 197 forks source link

Loading images failed #94

Closed amoazeni75 closed 11 months ago

amoazeni75 commented 11 months ago

I noticed the source code is not compatible with.png files. The issue shows up during training:

/saiga/src/saiga/core/image/templatedImage.h:81 Function: bool Saiga::TemplatedImage<T>::load(const string&) [with T = Eigen::Matrix<unsigned char, 3, 1, 0>; std::string = std::__cxx11::basic_string<char>]

Fix:

  1. Convert all .png files to .jpg before converting colmap to ADOP
  2. change the colmap to ADOP c++ file to replace the .png file extension with .jpg
  3. rebuild the whole source code