This repository contains implementation of Color Neural Parametric Models. A learnable parametric model for object shape and color representations.
This repo contains two implementation for CNPM model, their source roots can me found in following directories:
src/cnpmsrc/cnpm_v2
Each implementation root contains 4 modules:
src/{model_name}/callbacksAre responsible for PyTorchLightning callbacks used by training loopsrc/{model_name}/dataImplementation of DataSets and DataModulessrc/{model_name}/modelActual implementation of a modelsrc/{model_name}/traningTraining methods that setup callbacks, loggers and run training loop
Training configuration for each of the model can be found in corresponding root repositories. In order to run training, you should run following command:
python3 train.py --model cnpm --seed 42To get full list of commands:
python3 train.py --helpDatasets are publicly available by the following links:
Once the model is trained, you can use optimization scripts from src/cnpm/scripts/optimization, they generate artifacts with optimization process, that later can be used for statistical analysis.
An example of optimization process made on cloud points from multiple renders:

