insightface icon indicating copy to clipboard operation
insightface copied to clipboard

bbox, landmark = self.model.detect(cons_img, threshold=0.1, scale=1.0) problem

Open addiajsjjs opened this issue 1 year ago • 1 comments

self.model = insightface.model_zoo.get_model('retinaface_r50_v1') # ./.insightface self.model.prepare(ctx_id=self.gpu_id, nms=0.4) bbox, landmark = self.model.detect(cons_img, threshold=0.1, scale=1.0)

I want to use this code to perform detection, but the latest version of the insightface library has changed the detect function from its previous implementation. image Here is the latest information. I found that the detect function in detection/retinaface/retinaface.py is the one I want to use. How should I use the detect function from that file?

addiajsjjs avatar Aug 09 '24 08:08 addiajsjjs

change to load the face-detection model under 'antelopev2' or 'buffalo_l' model package.

nttstar avatar Aug 14 '24 16:08 nttstar