Update Model Card
Browse files
README.md
CHANGED
@@ -1,3 +1,62 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
library_name: diffusers
|
6 |
---
|
7 |
+
|
8 |
+
# Model Card for Arc2Face
|
9 |
+
|
10 |
+
<div align="center">
|
11 |
+
|
12 |
+
[**Project Page**](https://arc2face.github.io/) **|** [**Paper (ArXiv)**]() **|** [**Code**](https://github.com/foivospar/Arc2Face)
|
13 |
+
|
14 |
+
|
15 |
+
</div>
|
16 |
+
|
17 |
+
## Introduction
|
18 |
+
|
19 |
+
Arc2Face is an ID-conditioned face model, that can generate diverse, ID-consistent photos of a person given only its ArcFace ID-embedding.
|
20 |
+
It is trained on a restored version of the WebFace42M face recognition database, and is further fine-tuned on FFHQ and CelebA-HQ.
|
21 |
+
|
22 |
+
<div align="center">
|
23 |
+
<img src='assets/samples_short.jpg'>
|
24 |
+
</div>
|
25 |
+
|
26 |
+
## Model Details
|
27 |
+
|
28 |
+
It consists of 2 components:
|
29 |
+
- encoder, a finetuned CLIP ViT-L/14 model
|
30 |
+
- arc2face, a finetuned UNet model
|
31 |
+
|
32 |
+
both of which are fine-tuned from [runwayml/stable-diffusion-v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5).
|
33 |
+
The encoder is tailored for projecting ID-embeddings to the CLIP latent space.
|
34 |
+
Arc2Face adapts the pre-trained backbone to the task of ID-to-face generation, conditioned solely on ID vectors.
|
35 |
+
|
36 |
+
## Usage
|
37 |
+
|
38 |
+
The models can be downloaded directly from this repository or using python:
|
39 |
+
```python
|
40 |
+
from huggingface_hub import hf_hub_download
|
41 |
+
|
42 |
+
hf_hub_download(repo_id="FoivosPar/Arc2Face", filename="arc2face/config.json", local_dir="./models/arc2face")
|
43 |
+
hf_hub_download(repo_id="FoivosPar/Arc2Face", filename="arc2face/diffusion_pytorch_model.safetensors", local_dir="./models/arc2face")
|
44 |
+
hf_hub_download(repo_id="FoivosPar/Arc2Face", filename="encoder/config.json", local_dir="./models/encoder")
|
45 |
+
hf_hub_download(repo_id="FoivosPar/Arc2Face", filename="encoder/pytorch_model.bin", local_dir="./models/encoder")
|
46 |
+
```
|
47 |
+
|
48 |
+
Please check our [GitHub repository](https://arc2face.github.io/) for complete inference instruction.
|
49 |
+
|
50 |
+
## Limitations and Bias
|
51 |
+
|
52 |
+
- Only one person per image can be generated.
|
53 |
+
- Poses are constrained to the frontal hemisphere, similar to FFHQ images.
|
54 |
+
- The model may reflect the biases of the training data or the ID encoder.
|
55 |
+
|
56 |
+
## Citation
|
57 |
+
|
58 |
+
|
59 |
+
**BibTeX:**
|
60 |
+
|
61 |
+
```bibtex
|
62 |
+
```
|