deepinsight / deepinsight/insightface

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

Open
#2,627 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
29.8k
Forks
6.1k
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading detection/retinaface/retinaface.py and inspect the current detect function signature and its callers. Compare that interface with the reported retinaface_r50_v1 model usage; done means establishing the supported invocation or documenting the exact incompatibility.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.