shaoanlu/fewshot-face-translation-GAN
소개
FUNIT과 SPADE의 모듈을 통합한 얼굴 교체용 생성적 적대 신경망입니다.
시스템 및 인프라측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalFew-shot face translation 
A GAN based approach for one model to swap them all.
The table below shows our priliminary face-swapping results requiring one source face and <=5 target face photos. Notice that almost all of the identities, except Stephen Curry, are not in our training data (which is a subset of VGGFace2). More translation results can be found here.
Also, our model is capable of producing faces that has its gaze direction, glasses, and hiar occlusions being consistent with given source face. However, our model has suboptimal performance in terms of translating to asian faces. This is possibly due to limited representability of the feature extractor.
| Src.\Tar. | Andrej Karpathy | Andrew Y. Ng | Du Fu | Elon Musk | Emilia Clarke | Geoffrey Hinton | Stephen Curry | Yann Lecun | Yoshua Benjio |
|---|---|---|---|---|---|---|---|---|---|
| Andrej Karpathy |
N/A | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Andrew Y. Ng |
![]() |
N/A | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Du Fu | ![]() |
![]() |
N/A | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Elon Musk |
![]() |
![]() |
![]() |
N/A | ![]() |
![]() |
![]() |
![]() |
![]() |
| Emilia Clarke |
![]() |
![]() |
![]() |
![]() |
N/A | ![]() |
![]() |
![]() |
![]() |
| Geoffrey Hinton |
![]() |
![]() |
![]() |
![]() |
![]() |
N/A | ![]() |
![]() |
![]() |
| Stephen Curry |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
N/A | ![]() |
![]() |
| Yann Lecun |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
N/A | ![]() |
| Yoshua Benjio |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
N/A |
I really like the Du Fu translation: such an interesting demostration how the GAN imagine the appearance of the prominent Chinese poet from just a painting.
Try in Google Colab
We only provide pre-trained weights and inference script for now. Training script will be released after code cleanup.
Architecture


The above image illustrates our generator, which is a encoder-decoder based network, at test phase. Our swap-them-all approach is basically a GAN conditioned on the latent embeddings extracted from a pre-trained face recognition model. SPADE and AdaIN modules are incorporated in order to inject semantic priors to the networks.
During training phase, the input face A is heavily blurred and we train the model with resonctruction loss. Other objectives that aimed to improve translation performance while keeping semantic consistency, such as perceptual loss on rgb output and cosine similarity loss on latent embeddings, are also introduced.
Things that didn't work
- We tried to distort (spline warp, downsample) the input image as in faceswap-GAN instead of masking it. However, the model did not learn proper identity translation but output face that is similar to its input.
Requirements
- Python 3.6
- Keras 2.2.4
- TensorFlow 1.12.0 or 1.13.1
References
관련 프로젝트 살펴보기
불러오는 중…







































































