anhttran / 3dmm_cnn

Regressing Robust and Discriminative 3D Morphable Models with a very Deep Neural Network
Other
857 stars 254 forks source link

The install.sh may exist errors #49

Open AshleyYang25 opened 6 years ago

AshleyYang25 commented 6 years ago

I followed the install tutorial, but the caffe can't be installed on my ubuntu. Could you please check the install script of caffe and lib for c++, and give more details about it.

AshleyYang25 commented 5 years ago

The install.sh given by https://github.com/anhttran/3dmm_cnn/wiki/Installation-Script is only for the first testBatchModel.py. I suggested that the library requirements (Dlib Python and C++ library, OpenCV Python and C++ library, Caffe (version 1.0.0-rc3 or above required), Numpy, Python2.7) should be installed by yourself.

Since I install Dlib according to http://dlib.net/compile.html, I compiled the Dlib to shared objects again. Refered to https://stackoverflow.com/questions/33996361/create-a-shared-library-for-dlib.

-After complied the Dlib, there isn't libdlib.so file in the dlib installed path, but in /usr/lib exist the libdlib.so.
Modified the CMakeLists.txtline 5 and 6 as follow

set (DLIB_INCLUDE_DIR "/home/aba/dlib-19.15")
set (DLIB_LIB_DIR  "/usr/lib")

and add following lines before line 24

    INCLUDE_DIRECTORIES("/usr/local/include")
    INCLUDE_DIRECTORIES("/usr/local/include/opencv2")   
    INCLUDE_DIRECTORIES("/usr/local/include/opencv")

Addinclude_directories(/usr/lib)to the 3dmm_cnn/modules/PoseExpr/CMakeLists.txt before line4.

According to similar error, I managed to compile and install by removing OPTIONS -std=c++11 such as add_definitions(-std=c++11). But still some thing wrong. Finally I add OPTIONS -std= c++11, everything goes smoothly. However I don't know the reason.

fancy5858 commented 3 years ago

I also had many problems with make & install. Could you please share the generated TestVisualization so that I can use it to run teatMofel_PoseExpr.py .Thanks a lot.