Skip to content

EmbroiderSnow/Point2Mesh-via-SDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDF-Regression with position encoding based on fourier feature

This repository implements an MLP-based model for surface reconstruction from point clouds. The training data consists of spatial sample points and their corresponding SDF (Signed Distance Function) values, with the output being the reconstructed shape.

To capture high-frequency geometric details, positional encoding (based on Fourier features) is introduced, effectively restoring high-frequency signals in the reconstructed surface.

Environment Dependecies

  • Python >= 3.8
  • PyTorch = 2.6
  • CUDAToolkit = 12.6

How to run the code?

To train the model, run:

python ./train.py

To eval the model, copy the path of the checkpoint you want to eval, and then run:

python ./eval.py --checkpoint path/to/the/checkpoint

You can check the output .obj in ./eval_expirement/MLP-XXX-XXX/output

To plot the loss curve, copy the path of the log you want to plot, run:

python ./plot_log.py --log_file path/to/the/log

And then you can find a .png, which is the picture of loss curves.

Network Architecture Configuration

To customize the model, modify parameters in /model/config.json or create your own configuration file.A vanilla MLP complement already exists, namd mlp_config.json.

You may specify the configuration file during training using the --config argument:

python ./train.py --config path/to/the/config/file

About

Lab of Frontiers of Geometric Computation(2025 Spring PKU)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages