Official code for the paper "Single-View 3D Hair Modeling with Clumping Optimization". For more details, visit the official paper website: Clumping Hair
Environment Information:
This project has been tested on Windows with Visual Studio 2019.
-
Install Pixi: Please refer to the Pixi official installation guide to install Pixi, the environment manager
-
Install Project Dependencies: After installing Pixi, install the project dependencies.
pixi install
-
Run Post-installation Script: Finalize the setup by running the post-installation script.
pixi run postinstall
-
Calculate Initial Hair Strands: Generate the initial hair strands from your data.
pixi run gen_init_strands --root_real_imgs=<path-to-your-data>
-
Optimize Hair Strands: Optimize the generated hair strands.
pixi run optimization --data=<path-to-your-data> --output=<path-to-your-output>
- Replace
<path-to-your-data>with the path to your input data. - Replace
<path-to-your-output>with the directory where the optimized results will be saved.
- Replace