Eurographics 2022 Short Paper [Paper]
by Meitar Shechter, Rana Hanocka, Gal Metzer, Raja Giryes and Daniel Cohen-Or.
Clone the repo:
git clone https://github.com/MeitarShechter/NeuralMLS.git
cd NeuralMLS
Install using conda:
conda env create -f environment.yml
conda activate NeuralMLS
Setup python path:
export PYTHONPATH=$PYTHONPATH:$(pwd)
From the project root directory run:
./scripts/run_neuralmls.sh -s <MODEL_PATH>
Results will be logged by default into the log directory.
Example on a chair shape:
./scripts/run_neuralmls.sh -s "./data/chairs/__chair2/model.obj"
From the project root directory run:
./scripts/run_neuralmls.sh -s <MODEL_PATH> -c <CHECKPOINT_PATH>
Results will be logged by default into the checkpoint directory.
Example on a chair shape:
./scripts/run_neuralmls.sh -s "./data/chairs/__chair2/model.obj" -c ./log/main-09-06-2022__14:29:54-NeuralMLS-softmax_temp_1-chair2-rigid/net_final.pt
We provide scripts which reconstruct various of the paper results and visualizations, flags for playing with those are available in each script.
Some of our scripts relies on a pre-trained model of Keypoint Deformer.
We provide such model for 3 ShapeNet categories (Airplane, Chair, Car) that can be found in "./log/KPD_logs/category_name".
Comparison to other methods (a KPD pre-trained model must be provided in order to compare to KPD):
./scripts/create_comparisons.sh
1D weight and deformation visualizations:
./scripts/create_1d_illustration.sh
2D weight visualization:
./scripts/create_2d_illustration.sh
User study:
./scripts/create_user_study.sh
Temperature ablation (controlling interpolation-approximation trade-off):
./scripts/create_temperature_illustration.sh
Plain MLS ablation (alpha/epsilon):
./scripts/run_mls_ablation.sh
A visualization of a sequence of defomrations can be created by running the visualization script with the relevant configuration (can be found inside the script):
./scripts/create_basic_visualization.sh
We provide several shapes as examples, those are taken from ShapeNet. The human model is by kaneflame3d.
If you find this code useful, please consider citing our paper
@inproceedings {10.2312:egs.20221034,
booktitle = {Eurographics 2022 - Short Papers},
editor = {Pelechano, Nuria and Vanderhaeghe, David},
title = {{NeuralMLS: Geometry-Aware Control Point Deformation}},
author = {Shechter, Meitar and Hanocka, Rana and Metzer, Gal and Giryes, Raja and Cohen-Or, Daniel},
year = {2022},
publisher = {The Eurographics Association},
ISSN = {1017-4656},
ISBN = {978-3-03868-169-4},
DOI = {10.2312/egs.20221034}
}
If you have questions or issues running this code, please open an issue.
