{"id":13747167,"url":"https://github.com/albertpumarola/GANimation","last_synced_at":"2025-05-09T08:31:40.210Z","repository":{"id":42186752,"uuid":"142041664","full_name":"albertpumarola/GANimation","owner":"albertpumarola","description":"GANimation: Anatomically-aware Facial Animation from a Single Image (ECCV'18 Oral) [PyTorch]","archived":false,"fork":false,"pushed_at":"2019-12-23T06:27:57.000Z","size":77,"stargazers_count":1961,"open_issues_count":43,"forks_count":413,"subscribers_count":76,"default_branch":"master","last_synced_at":"2024-11-15T20:38:51.265Z","etag":null,"topics":["deep-learning","eccv-2018","face-manipulation","facial-expressions","gan","ganimation","generative-adversarial-network","pytorch"],"latest_commit_sha":null,"homepage":"http://www.albertpumarola.com/research/GANimation/index.html","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/albertpumarola.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-23T16:39:34.000Z","updated_at":"2024-11-12T11:15:38.000Z","dependencies_parsed_at":"2022-09-24T13:00:29.571Z","dependency_job_id":null,"html_url":"https://github.com/albertpumarola/GANimation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertpumarola%2FGANimation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertpumarola%2FGANimation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertpumarola%2FGANimation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertpumarola%2FGANimation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/albertpumarola","download_url":"https://codeload.github.com/albertpumarola/GANimation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253217012,"owners_count":21872995,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deep-learning","eccv-2018","face-manipulation","facial-expressions","gan","ganimation","generative-adversarial-network","pytorch"],"created_at":"2024-08-03T06:01:18.952Z","updated_at":"2025-05-09T08:31:39.924Z","avatar_url":"https://github.com/albertpumarola.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\u003cimg src='http://www.albertpumarola.com/images/2018/GANimation/face1_cyc.gif' align=\"right\" width=90\u003e\n\n# GANimation: Anatomically-aware Facial Animation from a Single Image\n### [[Project]](http://www.albertpumarola.com/research/GANimation/index.html)[ [Paper]](https://rdcu.be/bPuaJ) \nOfficial implementation of [GANimation](http://www.albertpumarola.com/research/GANimation/index.html). 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](https://arxiv.org/abs/1807.09251).\n\nThis code was made public to share our research for the benefit of the scientific community. Do NOT use it for immoral purposes.\n\n![GANimation](http://www.albertpumarola.com/images/2018/GANimation/teaser.png)\n\n## Prerequisites\n- Install PyTorch (version 0.3.1), Torch Vision and dependencies from http://pytorch.org\n- Install requirements.txt (```pip install -r requirements.txt```)\n\n## Data Preparation\nThe code requires a directory containing the following files:\n- `imgs/`: folder with all image\n- `aus_openface.pkl`: dictionary containing the images action units.\n- `train_ids.csv`: file containing the images names to be used to train.\n- `test_ids.csv`: file containing the images names to be used to test.\n\nAn example of this directory is shown in `sample_dataset/`.\n\nTo generate the `aus_openface.pkl` extract each image Action Units with [OpenFace](https://github.com/TadasBaltrusaitis/OpenFace/wiki/Action-Units) and store each output in a csv file the same name as the image. Then run:\n```\npython data/prepare_au_annotations.py\n```\n\n## Run\nTo train:\n```\nbash launch/run_train.sh\n```\nTo test:\n```\npython test --input_path path/to/img\n```\n\n## Citation\nIf you use this code or ideas from the paper for your research, please cite our paper:\n```\n@article{Pumarola_ijcv2019,\n    title={GANimation: One-Shot Anatomically Consistent Facial Animation},\n    author={A. Pumarola and A. Agudo and A.M. Martinez and A. Sanfeliu and F. Moreno-Noguer},\n    booktitle={International Journal of Computer Vision (IJCV)},\n    year={2019}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertpumarola%2FGANimation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbertpumarola%2FGANimation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertpumarola%2FGANimation/lists"}