Skip to content

Instantly share code, notes, and snippets.

@mcarletti
Last active September 24, 2019 09:28
Show Gist options
  • Save mcarletti/8a49499cf8463f3fad06914e55065fac to your computer and use it in GitHub Desktop.
Save mcarletti/8a49499cf8463f3fad06914e55065fac to your computer and use it in GitHub Desktop.
Download, compile and install PVNet
#!/bin/bash
sudo apt update
# Tested on:
# ubuntu 18.04 (kernel 4.15.0-58-generic x86_64 GNU/Linux)
# gcc (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
# cuda 8.0 (/usr/local/cuda-8.0)
git clone https://github.com/zju3dv/pvnet.git
cd pvnet
ROOT=`pwd`
python3 -m venv pvnet-env
source pvnet-env/bin/activate
pip install numpy
pip install cython
pip install -r requirements.txt
pip install tensorboardX
cd $ROOT/lib/ransac_voting_gpu_layer
python setup.py build_ext --inplace
cd $ROOT/lib/utils/extend_utils
sudo apt install libgoogle-glog-dev
sudo apt install libsuitesparse-dev
sudo apt install libatlas-base-dev
python build_extend_utils_cffi.py
cd $ROOT
sh build_ceres.sh
mv ceres/ceres-solver-1.14.0/build/lib/libceres* lib/utils/extend_utils/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOT/lib/utils/extend_utils/lib
deactivate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment