insightface icon indicating copy to clipboard operation
insightface copied to clipboard

why insightface cannot detect face in vggface2 dataset

Open garychan22 opened this issue 9 months ago • 1 comments

Using this api, 480K images in vggface2-hq cannot be detected, which is used to train a face recognition model.

self.app = FaceAnalysis(
    name='antelopev2', 
    # name='buffalo_l',
    root=os.path.join(cache_dir, "insightface_models"),
    providers=providers
)
self.app.prepare(ctx_id=0, det_size=(640, 640))

image_bgr = cv2.imread('xxxx')
face_info = self.app.get(image_bgr)

How can I resolve this problem? Anyone can help?

garychan22 avatar Jul 08 '25 01:07 garychan22

I can only suggest you to add padding to images (eg 0.15), if faces are too close "to the camera". And configure nms / det threadhold params. Worked for me

EvilaMany avatar Jul 29 '25 09:07 EvilaMany