insightface
insightface copied to clipboard
bbox, landmark = self.model.detect(cons_img, threshold=0.1, scale=1.0) problem
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.
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?
change to load the face-detection model under 'antelopev2' or 'buffalo_l' model package.