Install DeepFactors
masterTo install DeepFactors, follow these steps to clone the repository, install system dependencies, compile third-party libraries, and build the project.
1. Get the code
Clone the repository including all submodules:
git clone --recursive <url>If you already cloned without submodules, run:
git submodule update --init --recursive2. Install system dependencies
Ubuntu 18.04:
sudo apt install cmake libboost-all-dev libglew-dev libgoogle-glog-dev \
libjsoncpp-dev libopencv-dev libopenni2-dev unzip wgetNote: You must also install the TensorFlow C API. If using CUDA 10.0 and cuDNN 7.5, use pre-built binaries. For other versions, you must compile it from source.
Arch Linux:
sudo pacman -S boost cuda gflags glew google-glog jsoncpp opencv tensorflow-cudaNote: You also need the openni2 AUR package.
3. Compile third-party dependencies
Build the vendored dependencies using the provided script:
./thirdparty/makedeps.shYou can use the --threads option to speed up compilation (e.g., ./thirdparty/makedeps.sh --threads 5), but be mindful of system memory.
4. Build DeepFactors
Use CMake to configure and make to build:
mkdir build
cd build
cmake ..
makeYou can speed up the final build using make -j5.