albertpumarola/GANimation
albertpumarola/GANimation has 1,990 GitHub stars and 396 forks. GitHot measured 0 stars in 24 hours, +1 in 7 days, and +1 in 15 days. Last checked 2026-11-21 18:31 UTC. Last push 2019-12-23.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
GANimation: Anatomically-aware Facial Animation from a Single Image (ECCV'18 Oral) [PyTorch]
머신러닝README.md
Original
GANimation: Anatomically-aware Facial Animation from a Single Image
[Project] [Paper]
Official implementation of GANimation. In this work we introduce a novel GAN conditioning scheme based on Action Units (AU) annotations, which describe in a continuous manifold the anatomical facial movements defining a human expression. Our approach permits controlling the magnitude of activation of each AU and combine several of them. For more information please refer to the paper.
This code was made public to share our research for the benefit of the scientific community. Do NOT use it for immoral purposes.

Prerequisites
- Install PyTorch (version 0.3.1), Torch Vision and dependencies from http://pytorch.org
- Install requirements.txt (
pip install -r requirements.txt)
Data Preparation
The code requires a directory containing the following files:
imgs/: folder with all imageaus_openface.pkl: dictionary containing the images action units.train_ids.csv: file containing the images names to be used to train.test_ids.csv: file containing the images names to be used to test.
An example of this directory is shown in sample_dataset/.
To generate the aus_openface.pkl extract each image Action Units with OpenFace and store each output in a csv file the same name as the image. Then run:
python data/prepare_au_annotations.py
Run
To train:
bash launch/run_train.sh
To test:
python test --input_path path/to/img
Citation
If you use this code or ideas from the paper for your research, please cite our paper:
@article{Pumarola_ijcv2019,
title={GANimation: One-Shot Anatomically Consistent Facial Animation},
author={A. Pumarola and A. Agudo and A.M. Martinez and A. Sanfeliu and F. Moreno-Noguer},
booktitle={International Journal of Computer Vision (IJCV)},
year={2019}
}
관련 프로젝트 살펴보기
불러오는 중…