├── .gitignore ├── LICENSE ├── README.md ├── assets ├── anchors_39.npy ├── better_face_region.ply ├── face.npy ├── flame_up_lm_inds.npy ├── lm_inds_39.npy ├── nphm_lat_mean.npy ├── nphm_lat_std.npy ├── npm_lat_mean.npy ├── npm_lat_std.npy ├── template.ply └── template_face_up.ply ├── bin └── release.sh ├── dataset ├── README.md ├── neutrals_closed.json └── neutrals_open.json ├── notebooks └── .gitkeep ├── nphm_teaser.gif ├── pyproject.toml ├── scripts ├── .gitkeep ├── configs │ ├── fitting_nphm.yaml │ ├── fitting_npm.yaml │ ├── nphm.yaml │ ├── nphm_def.yaml │ ├── npm.yaml │ └── npm_def.yaml ├── data_processing │ ├── generate_single_view_observations.py │ ├── sample_deformation_field.py │ └── sample_surface.py ├── dataset │ └── example_usage.py ├── evaluation │ ├── eval.py │ └── gather.py ├── fitting │ └── fitting_pointclouds.py └── training │ ├── train.py │ └── train_corresp.py ├── setup.py ├── src ├── NPHM │ ├── __init__.py │ ├── data │ │ ├── __init__.py │ │ ├── __pycache__ │ │ │ ├── __init__.cpython-39.pyc │ │ │ └── manager.cpython-39.pyc │ │ ├── face_dataset.py │ │ ├── manager.py │ │ └── utils.py │ ├── env_paths.py │ ├── evaluation │ │ ├── metrics.py │ │ ├── render_utils.py │ │ └── shaders │ │ │ ├── mesh.frag │ │ │ └── mesh.vert │ ├── models │ │ ├── EnsembledDeepSDF.py │ │ ├── __pycache__ │ │ │ ├── EnsembledDeepSDF.cpython-39.pyc │ │ │ ├── deepSDF.cpython-39.pyc │ │ │ ├── diff_operators.cpython-39.pyc │ │ │ ├── fitting.cpython-39.pyc │ │ │ ├── iterative_root_finding.cpython-39.pyc │ │ │ └── reconstruction.cpython-39.pyc │ │ ├── deepSDF.py │ │ ├── diff_operators.py │ │ ├── fitting.py │ │ ├── iterative_root_finding.py │ │ ├── loss_functions.py │ │ ├── reconstruction.py │ │ ├── training.py │ │ └── training_corresp.py │ └── utils │ │ ├── __pycache__ │ │ ├── mesh_operations.cpython-39.pyc │ │ └── reconstruction.cpython-39.pyc │ │ ├── mesh_operations.py │ │ └── reconstruction.py └── __init__.py └── test └── .gitkeep /.gitignore: -------------------------------------------------------------------------------- 1 | /src/NPHM/env_paths.py 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/README.md -------------------------------------------------------------------------------- /assets/anchors_39.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/assets/anchors_39.npy -------------------------------------------------------------------------------- /assets/better_face_region.ply: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/assets/better_face_region.ply -------------------------------------------------------------------------------- /assets/face.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/assets/face.npy -------------------------------------------------------------------------------- /assets/flame_up_lm_inds.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/assets/flame_up_lm_inds.npy -------------------------------------------------------------------------------- /assets/lm_inds_39.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/assets/lm_inds_39.npy -------------------------------------------------------------------------------- /assets/nphm_lat_mean.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/assets/nphm_lat_mean.npy -------------------------------------------------------------------------------- /assets/nphm_lat_std.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/assets/nphm_lat_std.npy -------------------------------------------------------------------------------- /assets/npm_lat_mean.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/assets/npm_lat_mean.npy -------------------------------------------------------------------------------- /assets/npm_lat_std.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/assets/npm_lat_std.npy -------------------------------------------------------------------------------- /assets/template.ply: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/assets/template.ply -------------------------------------------------------------------------------- /assets/template_face_up.ply: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/assets/template_face_up.ply -------------------------------------------------------------------------------- /bin/release.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/bin/release.sh -------------------------------------------------------------------------------- /dataset/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/dataset/README.md -------------------------------------------------------------------------------- /dataset/neutrals_closed.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/dataset/neutrals_closed.json -------------------------------------------------------------------------------- /dataset/neutrals_open.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/dataset/neutrals_open.json -------------------------------------------------------------------------------- /notebooks/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nphm_teaser.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/nphm_teaser.gif -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/pyproject.toml -------------------------------------------------------------------------------- /scripts/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /scripts/configs/fitting_nphm.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/scripts/configs/fitting_nphm.yaml -------------------------------------------------------------------------------- /scripts/configs/fitting_npm.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/scripts/configs/fitting_npm.yaml -------------------------------------------------------------------------------- /scripts/configs/nphm.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/scripts/configs/nphm.yaml -------------------------------------------------------------------------------- /scripts/configs/nphm_def.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/scripts/configs/nphm_def.yaml -------------------------------------------------------------------------------- /scripts/configs/npm.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/scripts/configs/npm.yaml -------------------------------------------------------------------------------- /scripts/configs/npm_def.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/scripts/configs/npm_def.yaml -------------------------------------------------------------------------------- /scripts/data_processing/generate_single_view_observations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/scripts/data_processing/generate_single_view_observations.py -------------------------------------------------------------------------------- /scripts/data_processing/sample_deformation_field.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/scripts/data_processing/sample_deformation_field.py -------------------------------------------------------------------------------- /scripts/data_processing/sample_surface.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/scripts/data_processing/sample_surface.py -------------------------------------------------------------------------------- /scripts/dataset/example_usage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/scripts/dataset/example_usage.py -------------------------------------------------------------------------------- /scripts/evaluation/eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/scripts/evaluation/eval.py -------------------------------------------------------------------------------- /scripts/evaluation/gather.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/scripts/evaluation/gather.py -------------------------------------------------------------------------------- /scripts/fitting/fitting_pointclouds.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/scripts/fitting/fitting_pointclouds.py -------------------------------------------------------------------------------- /scripts/training/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/scripts/training/train.py -------------------------------------------------------------------------------- /scripts/training/train_corresp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/scripts/training/train_corresp.py -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/setup.py -------------------------------------------------------------------------------- /src/NPHM/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/NPHM/data/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/NPHM/data/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/data/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /src/NPHM/data/__pycache__/manager.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/data/__pycache__/manager.cpython-39.pyc -------------------------------------------------------------------------------- /src/NPHM/data/face_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/data/face_dataset.py -------------------------------------------------------------------------------- /src/NPHM/data/manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/data/manager.py -------------------------------------------------------------------------------- /src/NPHM/data/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/data/utils.py -------------------------------------------------------------------------------- /src/NPHM/env_paths.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/env_paths.py -------------------------------------------------------------------------------- /src/NPHM/evaluation/metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/evaluation/metrics.py -------------------------------------------------------------------------------- /src/NPHM/evaluation/render_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/evaluation/render_utils.py -------------------------------------------------------------------------------- /src/NPHM/evaluation/shaders/mesh.frag: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/evaluation/shaders/mesh.frag -------------------------------------------------------------------------------- /src/NPHM/evaluation/shaders/mesh.vert: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/evaluation/shaders/mesh.vert -------------------------------------------------------------------------------- /src/NPHM/models/EnsembledDeepSDF.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/models/EnsembledDeepSDF.py -------------------------------------------------------------------------------- /src/NPHM/models/__pycache__/EnsembledDeepSDF.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/models/__pycache__/EnsembledDeepSDF.cpython-39.pyc -------------------------------------------------------------------------------- /src/NPHM/models/__pycache__/deepSDF.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/models/__pycache__/deepSDF.cpython-39.pyc -------------------------------------------------------------------------------- /src/NPHM/models/__pycache__/diff_operators.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/models/__pycache__/diff_operators.cpython-39.pyc -------------------------------------------------------------------------------- /src/NPHM/models/__pycache__/fitting.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/models/__pycache__/fitting.cpython-39.pyc -------------------------------------------------------------------------------- /src/NPHM/models/__pycache__/iterative_root_finding.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/models/__pycache__/iterative_root_finding.cpython-39.pyc -------------------------------------------------------------------------------- /src/NPHM/models/__pycache__/reconstruction.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/models/__pycache__/reconstruction.cpython-39.pyc -------------------------------------------------------------------------------- /src/NPHM/models/deepSDF.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/models/deepSDF.py -------------------------------------------------------------------------------- /src/NPHM/models/diff_operators.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/models/diff_operators.py -------------------------------------------------------------------------------- /src/NPHM/models/fitting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/models/fitting.py -------------------------------------------------------------------------------- /src/NPHM/models/iterative_root_finding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/models/iterative_root_finding.py -------------------------------------------------------------------------------- /src/NPHM/models/loss_functions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/models/loss_functions.py -------------------------------------------------------------------------------- /src/NPHM/models/reconstruction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/models/reconstruction.py -------------------------------------------------------------------------------- /src/NPHM/models/training.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/models/training.py -------------------------------------------------------------------------------- /src/NPHM/models/training_corresp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/models/training_corresp.py -------------------------------------------------------------------------------- /src/NPHM/utils/__pycache__/mesh_operations.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/utils/__pycache__/mesh_operations.cpython-39.pyc -------------------------------------------------------------------------------- /src/NPHM/utils/__pycache__/reconstruction.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/utils/__pycache__/reconstruction.cpython-39.pyc -------------------------------------------------------------------------------- /src/NPHM/utils/mesh_operations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/utils/mesh_operations.py -------------------------------------------------------------------------------- /src/NPHM/utils/reconstruction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonGiebenhain/NPHM/HEAD/src/NPHM/utils/reconstruction.py -------------------------------------------------------------------------------- /src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/.gitkeep: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------