Xinya Chen1, Hanlei Guo1, Yanrui Bin2, Shangzhan Zhang1, Yuanbo Yang1, Yue Wang1, Yujun Shen3, Yiyi Liao1*
1Zhejiang University 2The Hong Kong Polytechnic University 3Ant Group *corresponding author
Figure: Overview of TeFF.
We test our code on PyTorch 1.12.1 and CUDA toolkit 11.3. Please follow the instructions on https://pytorch.org for installation. Other dependencies can be installed with the following command:
conda env create -f environment.yml
conda activate TeFF
We provide the scripts for training in ./shell_scripts. Please update the path to the dataset in the scripts.
The pretrained models are available here.
To perform the inference, you can use the command:
python gen_videos.py --outdir=${OUTDIR}
--trunc=0.7
--seeds=0-8
--grid=3x3
--network=${CHECKPOINT_PATH}
--reload_modules=True
where CHECKPOINT_PATH
should be replaced with the path to the checkpoint. OUTDIR
denotes the folder to save the outputs.
@article{Chen2024TeFF,
author = {Chen, Xinya and Guo, Hanlei and Bin, Yanrui and Zhang, Shangzhan and Yang, Yuanbo and Wang, Yue and Shen, Yujun and Liao, Yiyi},
title = {Learning 3D-Aware GANs from Unposed Images with Template Feature Field},
journal = {arXiv preprint arXiv:2404.05705},
year = {2024}}