anhttran / 3dmm_cnn

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

Script for fast installation on clean ubuntu 16.04 #43

Closed seva100 closed 6 years ago

seva100 commented 6 years ago

@anhttran, huge thanks for open-sourcing this. I would like to share the installation script for all dependencies of this repository, which I prepared for convenient installation on a clean Ubuntu 16.04, Cuda 9.2 with Conda. This is not an issue, rather an improvement which someone might find helpful, as I hope.

Installation instructions:

  1. Download the repository and recreate additional files, as described on the repository home page
  2. Download and install CUDA for Ubuntu 16.04 (9.2 is the current latest version):
    wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.2.88-1_amd64.deb
    sudo dpkg -i cuda-repo-ubuntu1604_9.2.88-1_amd64.deb
    sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
    sudo apt-get update
    sudo apt-get install cuda
  3. Download latest Anaconda or Miniconda
  4. Do
    conda create -n=3dmm_cnn python=2.7.*
    source activate 3dmm_cnn
  5. Download install.sh to the project folder, where all the files from repository are contained.
  6. Then bash install.sh

The script installs everything in a conda virtual environment 3dmm_cnn.

anhttran commented 6 years ago

Amazing. It will help to solve a lot of installation issues.

I will check and share it to people. Many thanks for your sharing.

iacopomasi commented 6 years ago

Many thanks, @seva100. We can create a wiki page on the github with his suggestion! Thanks!

iacopomasi commented 6 years ago

Done. https://github.com/anhttran/3dmm_cnn/wiki/Installation-Script

Thanks!

seva100 commented 6 years ago

I have updated the installation script: https://pastebin.com/xB1bMSVC It now contains line 78, which I forgot to add initially. It is needed for Caffe to be seen after the installation.

iacopomasi commented 6 years ago

Thanks! I replaced it on the wiki page!

seva100 commented 6 years ago

@anhttran @iacopomasi, however, this script turns out to be not working for the Pose&Expr estimation script (demoCode/testModelPoseExpr.py), at least on my machine. Main issue seems to be from OpenCV versions conflict. May I ask what is the OpenCV version required for the second script?

BTW, I would be very grateful to have a docker container provided by you. I can assist with that if needed.

anhttran commented 6 years ago

We use OpenCV 2. OpenCV 3 requires some changes in code.

I am on travel. I will check if I can make the docker file when I have time.

Many thanks, Anh

On Thu, Jun 14, 2018 at 7:58 AM, Artem Sevastopolsky < notifications@github.com> wrote:

@anhttran https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_anhttran&d=DwMFaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=uWuFHkuJNMJjKNj2bKpEDw&m=mojth2Q76_lYYGRQ1ySRLQDc8cqGpmqhqOSVUFAFxAs&s=roB_fxFX_qhrbtnhBYv3TMuUiHId5MFQYXKD57gwxuw&e= @iacopomasi https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_iacopomasi&d=DwMFaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=uWuFHkuJNMJjKNj2bKpEDw&m=mojth2Q76_lYYGRQ1ySRLQDc8cqGpmqhqOSVUFAFxAs&s=7SbWIytQuPGTa10IYrYOHOYmswzIp4FWuJHqPNcLNFk&e=, however, this script turns out to be not working for the Pose&Expr estimation script (demoCode/testModelPoseExpr.py), at least on my machine. Main issue seems to be from OpenCV versions conflict. May I ask what is the OpenCV version required for the second script?

BTW, I would be very grateful to have a docker container provided by you. I can assist with that if needed.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_anhttran_3dmm-5Fcnn_issues_43-23issuecomment-2D397326281&d=DwMFaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=uWuFHkuJNMJjKNj2bKpEDw&m=mojth2Q76_lYYGRQ1ySRLQDc8cqGpmqhqOSVUFAFxAs&s=kweEesV061zvIt80714Pvk0bpIbpR6ohy5LplPHJZEE&e=, or mute the thread https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AIpm-5FtFoiLQNsCfm6u11kvk5BFm4vWHqks5t8noCgaJpZM4Uer0v&d=DwMFaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=uWuFHkuJNMJjKNj2bKpEDw&m=mojth2Q76_lYYGRQ1ySRLQDc8cqGpmqhqOSVUFAFxAs&s=UKLsxcrz99b7ZS7-mlWz6I88jTp8huhXwN7X4WY9I3Y&e= .