Downloads · 30 days
0
jjunyuongv/insightface-endpoint
insightface-endpoint is a feature extraction model from jjunyuongv. Use it when you need embeddings to search or compare text. The card lists the license as mit.
InsightFace를 사용한 얼굴 임베딩 추출 및 유사도 계산 모델입니다.
Downloads · 30 days
0
Access
Public
Updated Nov 25, 2025
Repo size
177 MB
Likes
0
Public
Click a slice to open those files.
.zip177 MB · 100%
From the Hugging Face model README
InsightFace를 사용한 얼굴 임베딩 추출 및 유사도 계산 모델입니다.
이 모델은 다음 두 가지 주요 기능을 제공합니다:
buffalo_l 모델을 사용하여 이미지에서 얼굴을 감지하고 특징 벡터(임베딩)를 추출합니다.buffalo_l/: 얼굴 감지 및 임베딩 추출 모델 폴더
det_10g.onnx: 얼굴 감지 모델genderage.onnx: 성별/나이 추정 모델w600k_r50.onnx: 얼굴 랜드마크 및 임베딩 추출 모델이 모델은 HuggingFace Inference Endpoint로 배포되어 사용됩니다.
import requests
response = requests.post(
"https://your-endpoint-url.hf.space",
headers={"Authorization": "Bearer YOUR_TOKEN"},
json={
"task": "face-detect",
"image": "data:image/png;base64,..."
}
)
# 응답 형식:
# {
# "faces": [
# {
# "bbox": [x1, y1, x2, y2],
# "embedding": [0.123, 0.456, ...], # 512차원 벡터
# "det_score": 0.99,
# "gender": 0, # 0: 여성, 1: 남성
# "age": 25
# }
# ]
# }
response = requests.post(
"https://your-endpoint-url.hf.space",
headers={"Authorization": "Bearer YOUR_TOKEN"},
json={
"task": "face-similarity",
"image1": "data:image/png;base64,...",
"image2": "data:image/png;base64,...",
"face_index1": 0,
"face_index2": 0
}
)
# 응답 형식:
# {
# "similarity": 0.85, # 0.0 ~ 1.0 (1.0이 가장 유사)
# "embedding1": [0.123, 0.456, ...],
# "embedding2": [0.234, 0.567, ...],
# "face1_info": {"bbox": [...], "det_score": 0.99, ...},
# "face2_info": {"bbox": [...], "det_score": 0.98, ...}
# }
이 모델은 원본 InsightFace 모델의 라이선스를 따릅니다.