├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── SECURITY.md ├── assets ├── beard_style_to_pca_map.json ├── demo_fine_tune.gif ├── demo_intro.gif ├── eyebrow_style_to_pca_map.json ├── hdri_model_20200116.pck ├── hdri_turntable_embeddings.npy └── head_hair_style_to_pca_map.json ├── confignet ├── __init__.py ├── azure_ml_utils.py ├── confignet_first_stage.py ├── confignet_second_stage.py ├── confignet_utils.py ├── dataset_utils.py ├── dnn_models │ ├── building_blocks.py │ ├── hologan_discriminator.py │ ├── hologan_generator.py │ ├── instance_normalization.py │ ├── real_encoder.py │ └── synthetic_encoder.py ├── face_image_normalizer.py ├── latent_gan.py ├── losses.py ├── metrics │ ├── blendshape_names.py │ ├── celeba_attribute_prediction.py │ ├── controllability_metric_configs.py │ ├── inception_distance.py │ └── metrics.py ├── neural_renderer_dataset.py └── perceptual_loss.py ├── evaluation ├── basic_ui.py ├── confignet_demo.py ├── evaluate_confignet_controllability.py └── evaluation_utils.py ├── generate_dataset.py ├── hdri_encoding ├── generate_hdri_turntable_inputs.py ├── hdri_pca_model.py ├── metadata_encoding_utils.py └── process_hdri_metadata.py ├── setup ├── download_deps.py ├── download_models.py └── requirements.txt ├── tests ├── data_processing_test.py ├── evaluation_test.py ├── fixtures.py ├── hdri_encoding_test.py ├── inference_test.py ├── test_assets │ ├── confignet_basic_ref.npz │ ├── confignet_basic_ref_256.npz │ ├── confignet_basic_ref_512.npz │ ├── confignet_finetune_ref_256.npz │ ├── confignet_finetune_ref_512.npz │ ├── hdri_encoding │ │ ├── 000.hdr │ │ ├── 001.hdr │ │ ├── 002.hdr │ │ └── hdri_model.pck │ ├── img_0000000_000.png │ ├── img_0000008_000.png │ ├── latentgan_ref_256.npz │ ├── latentgan_ref_512.npz │ ├── list_attr_celeba.txt │ ├── meta_0000000_000.json │ ├── meta_0000008_000.json │ ├── test_dataset_res_256.pck │ ├── test_dataset_res_256_imgs.dat │ ├── uv_0000000_000.exr │ └── uv_0000008_000.exr └── training_test.py ├── train_attribute_classifier.py ├── train_confignet.py ├── train_latent_gan.py └── training_utils.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/.gitignore -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/SECURITY.md -------------------------------------------------------------------------------- /assets/beard_style_to_pca_map.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/assets/beard_style_to_pca_map.json -------------------------------------------------------------------------------- /assets/demo_fine_tune.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/assets/demo_fine_tune.gif -------------------------------------------------------------------------------- /assets/demo_intro.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/assets/demo_intro.gif -------------------------------------------------------------------------------- /assets/eyebrow_style_to_pca_map.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/assets/eyebrow_style_to_pca_map.json -------------------------------------------------------------------------------- /assets/hdri_model_20200116.pck: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/assets/hdri_model_20200116.pck -------------------------------------------------------------------------------- /assets/hdri_turntable_embeddings.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/assets/hdri_turntable_embeddings.npy -------------------------------------------------------------------------------- /assets/head_hair_style_to_pca_map.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/assets/head_hair_style_to_pca_map.json -------------------------------------------------------------------------------- /confignet/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/__init__.py -------------------------------------------------------------------------------- /confignet/azure_ml_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/azure_ml_utils.py -------------------------------------------------------------------------------- /confignet/confignet_first_stage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/confignet_first_stage.py -------------------------------------------------------------------------------- /confignet/confignet_second_stage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/confignet_second_stage.py -------------------------------------------------------------------------------- /confignet/confignet_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/confignet_utils.py -------------------------------------------------------------------------------- /confignet/dataset_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/dataset_utils.py -------------------------------------------------------------------------------- /confignet/dnn_models/building_blocks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/dnn_models/building_blocks.py -------------------------------------------------------------------------------- /confignet/dnn_models/hologan_discriminator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/dnn_models/hologan_discriminator.py -------------------------------------------------------------------------------- /confignet/dnn_models/hologan_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/dnn_models/hologan_generator.py -------------------------------------------------------------------------------- /confignet/dnn_models/instance_normalization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/dnn_models/instance_normalization.py -------------------------------------------------------------------------------- /confignet/dnn_models/real_encoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/dnn_models/real_encoder.py -------------------------------------------------------------------------------- /confignet/dnn_models/synthetic_encoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/dnn_models/synthetic_encoder.py -------------------------------------------------------------------------------- /confignet/face_image_normalizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/face_image_normalizer.py -------------------------------------------------------------------------------- /confignet/latent_gan.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/latent_gan.py -------------------------------------------------------------------------------- /confignet/losses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/losses.py -------------------------------------------------------------------------------- /confignet/metrics/blendshape_names.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/metrics/blendshape_names.py -------------------------------------------------------------------------------- /confignet/metrics/celeba_attribute_prediction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/metrics/celeba_attribute_prediction.py -------------------------------------------------------------------------------- /confignet/metrics/controllability_metric_configs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/metrics/controllability_metric_configs.py -------------------------------------------------------------------------------- /confignet/metrics/inception_distance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/metrics/inception_distance.py -------------------------------------------------------------------------------- /confignet/metrics/metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/metrics/metrics.py -------------------------------------------------------------------------------- /confignet/neural_renderer_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/neural_renderer_dataset.py -------------------------------------------------------------------------------- /confignet/perceptual_loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/confignet/perceptual_loss.py -------------------------------------------------------------------------------- /evaluation/basic_ui.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/evaluation/basic_ui.py -------------------------------------------------------------------------------- /evaluation/confignet_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/evaluation/confignet_demo.py -------------------------------------------------------------------------------- /evaluation/evaluate_confignet_controllability.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/evaluation/evaluate_confignet_controllability.py -------------------------------------------------------------------------------- /evaluation/evaluation_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/evaluation/evaluation_utils.py -------------------------------------------------------------------------------- /generate_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/generate_dataset.py -------------------------------------------------------------------------------- /hdri_encoding/generate_hdri_turntable_inputs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/hdri_encoding/generate_hdri_turntable_inputs.py -------------------------------------------------------------------------------- /hdri_encoding/hdri_pca_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/hdri_encoding/hdri_pca_model.py -------------------------------------------------------------------------------- /hdri_encoding/metadata_encoding_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/hdri_encoding/metadata_encoding_utils.py -------------------------------------------------------------------------------- /hdri_encoding/process_hdri_metadata.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/hdri_encoding/process_hdri_metadata.py -------------------------------------------------------------------------------- /setup/download_deps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/setup/download_deps.py -------------------------------------------------------------------------------- /setup/download_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/setup/download_models.py -------------------------------------------------------------------------------- /setup/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/setup/requirements.txt -------------------------------------------------------------------------------- /tests/data_processing_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/data_processing_test.py -------------------------------------------------------------------------------- /tests/evaluation_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/evaluation_test.py -------------------------------------------------------------------------------- /tests/fixtures.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/fixtures.py -------------------------------------------------------------------------------- /tests/hdri_encoding_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/hdri_encoding_test.py -------------------------------------------------------------------------------- /tests/inference_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/inference_test.py -------------------------------------------------------------------------------- /tests/test_assets/confignet_basic_ref.npz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/test_assets/confignet_basic_ref.npz -------------------------------------------------------------------------------- /tests/test_assets/confignet_basic_ref_256.npz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/test_assets/confignet_basic_ref_256.npz -------------------------------------------------------------------------------- /tests/test_assets/confignet_basic_ref_512.npz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/test_assets/confignet_basic_ref_512.npz -------------------------------------------------------------------------------- /tests/test_assets/confignet_finetune_ref_256.npz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/test_assets/confignet_finetune_ref_256.npz -------------------------------------------------------------------------------- /tests/test_assets/confignet_finetune_ref_512.npz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/test_assets/confignet_finetune_ref_512.npz -------------------------------------------------------------------------------- /tests/test_assets/hdri_encoding/000.hdr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/test_assets/hdri_encoding/000.hdr -------------------------------------------------------------------------------- /tests/test_assets/hdri_encoding/001.hdr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/test_assets/hdri_encoding/001.hdr -------------------------------------------------------------------------------- /tests/test_assets/hdri_encoding/002.hdr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/test_assets/hdri_encoding/002.hdr -------------------------------------------------------------------------------- /tests/test_assets/hdri_encoding/hdri_model.pck: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/test_assets/hdri_encoding/hdri_model.pck -------------------------------------------------------------------------------- /tests/test_assets/img_0000000_000.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/test_assets/img_0000000_000.png -------------------------------------------------------------------------------- /tests/test_assets/img_0000008_000.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/test_assets/img_0000008_000.png -------------------------------------------------------------------------------- /tests/test_assets/latentgan_ref_256.npz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/test_assets/latentgan_ref_256.npz -------------------------------------------------------------------------------- /tests/test_assets/latentgan_ref_512.npz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/test_assets/latentgan_ref_512.npz -------------------------------------------------------------------------------- /tests/test_assets/list_attr_celeba.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/test_assets/list_attr_celeba.txt -------------------------------------------------------------------------------- /tests/test_assets/meta_0000000_000.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/test_assets/meta_0000000_000.json -------------------------------------------------------------------------------- /tests/test_assets/meta_0000008_000.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/test_assets/meta_0000008_000.json -------------------------------------------------------------------------------- /tests/test_assets/test_dataset_res_256.pck: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/test_assets/test_dataset_res_256.pck -------------------------------------------------------------------------------- /tests/test_assets/test_dataset_res_256_imgs.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/test_assets/test_dataset_res_256_imgs.dat -------------------------------------------------------------------------------- /tests/test_assets/uv_0000000_000.exr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/test_assets/uv_0000000_000.exr -------------------------------------------------------------------------------- /tests/test_assets/uv_0000008_000.exr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/test_assets/uv_0000008_000.exr -------------------------------------------------------------------------------- /tests/training_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/tests/training_test.py -------------------------------------------------------------------------------- /train_attribute_classifier.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/train_attribute_classifier.py -------------------------------------------------------------------------------- /train_confignet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/train_confignet.py -------------------------------------------------------------------------------- /train_latent_gan.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/train_latent_gan.py -------------------------------------------------------------------------------- /training_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/ConfigNet/HEAD/training_utils.py --------------------------------------------------------------------------------