Update README.md
Browse files
README.md
CHANGED
|
@@ -20,7 +20,7 @@ pipeline_tag: text-to-image
|
|
| 20 |
InstantID is a new state-of-the-art tuning-free method to achieve ID-Preserving generation with only single image.
|
| 21 |
|
| 22 |
<div align="center">
|
| 23 |
-
|
| 24 |
</div>
|
| 25 |
|
| 26 |
|
|
@@ -34,22 +34,6 @@ from huggingface_hub import hf_hub_download
|
|
| 34 |
hf_hub_download(repo_id="InstantX/InstantID", local_dir="./checkpoints")
|
| 35 |
```
|
| 36 |
|
| 37 |
-
|
| 38 |
-
```python
|
| 39 |
-
|
| 40 |
-
import cv2
|
| 41 |
-
from insightface.app import FaceAnalysis
|
| 42 |
-
import torch
|
| 43 |
-
|
| 44 |
-
app = FaceAnalysis(name="buffalo_l", providers=['CUDAExecutionProvider', 'CPUExecutionProvider'])
|
| 45 |
-
app.prepare(ctx_id=0, det_size=(640, 640))
|
| 46 |
-
|
| 47 |
-
image = cv2.imread("person.jpg")
|
| 48 |
-
faces = app.get(image)
|
| 49 |
-
|
| 50 |
-
faceid_embeds = torch.from_numpy(faces[0].normed_embedding).unsqueeze(0)
|
| 51 |
-
```
|
| 52 |
-
|
| 53 |
For more details, please follow the instructions in our [GitHub repository](https://github.com/InstantID/InstantID).
|
| 54 |
|
| 55 |
|
|
|
|
| 20 |
InstantID is a new state-of-the-art tuning-free method to achieve ID-Preserving generation with only single image.
|
| 21 |
|
| 22 |
<div align="center">
|
| 23 |
+
<img src='examples/0.png' width='65%' height='65%'>
|
| 24 |
</div>
|
| 25 |
|
| 26 |
|
|
|
|
| 34 |
hf_hub_download(repo_id="InstantX/InstantID", local_dir="./checkpoints")
|
| 35 |
```
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
For more details, please follow the instructions in our [GitHub repository](https://github.com/InstantID/InstantID).
|
| 38 |
|
| 39 |
|