You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# include CLI11
git clone https://github.com/CLIUtils/CLI11.git
cd CLI11
git submodule update --init
mkdir build && cd build
cmake ..
sudo make install
cd ~
# install Eigen3
sudo apt install mercurial
hg clone https://bitbucket.org/eigen/eigen/
# git clone https://github.com/eigenteam/eigen-git-mirror.git
mkdir eigen/build && cd eigen/build
cmake ..
sudo make install
cd ~
# install nanoflann
git clone https://github.com/jlblancoc/nanoflann.git
mkdir nanoflann/build && cd nanoflann/build
cmake ..
sudo make install
cd ~
# install mpark/variant
git clone https://github.com/mpark/variant.git
mkdir variant/build && cd variant/build
cmake ..
sudo make install
# build DeepSDF
git clone https://github.com/jianguda/DeepSDF.git
cd ~/DeepSDF
git submodule update --init
mkdir build && cd build
cmake -D CMAKE_PREFIX_PATH=~ ..
make -j
cd ~
# optional config
export PANGOLIN_WINDOW_URI=headless://
# check build output
ls ~/DeepSDF/bin
# there should be two executables, one for surface sampling and one for SDF sampling
# with the binaries, the data-set can be preprocessed using `preprocess_data.py`
# install dependencies ...
pip3 install torch trimesh numpy scipy scikit-image plyfile
# run demo (use python3 instead of python)
# refer to https://github.com/jianguda/DeepSDF#examples
# navigate to the DeepSdf root directory
cd ~/DeepSDF
# create a home for the data
mkdir data
# pre-process the sofas training set (SDF samples)
python3 preprocess_data.py --data_dir data --source ~/ShapeNetCore.v2/ --name ShapeNetV2 --split examples/splits/sv2_sofas_train.json --skip
# train the model
python3 train_deep_sdf.py -e examples/sofas
# pre-process the sofa test set (SDF samples)
python3 preprocess_data.py --data_dir data --source ~/ShapeNetCore.v2/ --name ShapeNetV2 --split examples/splits/sv2_sofas_test.json --test --skip
# pre-process the sofa test set (surface samples)
python3 preprocess_data.py --data_dir data --source ~/ShapeNetCore.v2/ --name ShapeNetV2 --split examples/splits/sv2_sofas_test.json --surface --skip
# reconstruct meshes from the sofa test split (after 2000 epochs)
python3 reconstruct.py -e examples/sofas -c 2000 --split examples/splits/sv2_sofas_test.json -d data --skip
# evaluate the reconstructions
python3 evaluate.py -e examples/sofas -c 2000 -d data -s examples/splits/sv2_sofas_test.json