3D-Aware Semantic-Guided Generative Model for Human Synthesis (3D-SGAN)
Official PyTorch implementation of our ECCV 2022 paper
Camera Pose | Semantic |
---|---|
Texture | Translation |
---|---|
3D-Aware Semantic-Guided Generative Model for Human Synthesis
Jichao Zhang, Enver Sangineto,
Hao Tang, Aliaksandr Siarohin, Zhun Zhong,
Nicu Sebe, Wei Wang
University of Trento, Snap Research, ETH Zurich, University of Modena e Reggio Emilia
Abstract: Generative Neural Radiance Field (GNeRF) models, which extract implicit 3D representations from 2D images, have recently been shown to produce realistic images representing rigid/semi-rigid objects, such as human faces or cars. However, they usually struggle to generate high-quality images representing non-rigid objects, such as the human body, which is of a great interest for many computer graphics applications. This paper proposes a 3D-aware Semantic-Guided Generative Model (3D-SGAN) for human image synthesis, which combines a GNeRF with a texture generator. The former learns an implicit 3D representation of the human body and outputs a set of 2D semantic segmentation masks. The latter transforms these semantic masks into a real image, adding a realistic texture to the human appearance. Without requiring additional 3D information, our model can learn 3D human representations with a photo-realistic, controllable generation. Our experiments on the DeepFashion dataset show that 3D-SGAN significantly outperforms the most recent baselines.
conda env create -f environment.yml
conda activate sgan
To-do lists
-
we will provide the pretrained model of VAE-StyleGANv2, please put the pretrained model into the ./pretrained_models/. And change dataset path to yours by modifying config files.
-
3D-SGAN Training
2.1) DeepFashion:
bash scripts/train_fashion.sh
2.2) VITON:
bash scripts/train_VITON.sh
We will release the pretrained model of the entire pipeline.
- DeepFashion:
bash scripts/test_fashion.sh
- VITON:
bash scripts/test_VITON.sh
bash scripts/inverse_semantic.sh
bash scripts/inverse_human.sh
To-do list
[1] https://github.com/autonomousvision/giraffe
[2] https://github.com/rosinality/stylegan2-pytorch
@article{zhang20213d,
title={3D-Aware Semantic-Guided Generative Model for Human Synthesis},
author={Zhang, Jichao and Sangineto, Enver and Tang, Hao and Siarohin, Aliaksandr and Zhong, Zhun and Sebe, Nicu and Wang, Wei},
journal={ECCV},
year={2022}
}