File size: 751 Bytes
12496d5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
license: apache-2.0
tags:
- clip
- multimodal
- computer-vision
- nlp
- faiss
- face-recognition
---

# multimodal-face-clip

Multimodal CLIP model fine-tuned for face recognition and retrieval.

## Usage

```python
from transformers import CLIPModel, CLIPProcessor
from huggingface_hub import hf_hub_download
import faiss
import json

# Load model
model = CLIPModel.from_pretrained("multimodal-face-clip", subfolder=".")
processor = CLIPProcessor.from_pretrained("multimodal-face-clip", subfolder=".")

# Load embeddings (optional)
text_index_path = hf_hub_download(repo_id="multimodal-face-clip", filename="embeddings/text_index.faiss")
image_index_path = hf_hub_download(repo_id="multimodal-face-clip", filename="embeddings/image_index.faiss")