deepinsight / deepinsight/insightface
how to use insightface with multiprocess?
- Dominant language
- Python
- Stars
- 29.7k
- Forks
- 6.1k
- PR merge metrics
- No merged PRs in 30d
Description
this code cannot work for multiple gpus and multiprocess. can you release some checkpoints and multiprocess code for developers?
import cv2
import numpy as np
import insightface
from insightface.app import FaceAnalysis
from insightface.data import get_image as ins_get_image
app = FaceAnalysis(providers=['CUDAExecutionProvider', 'CPUExecutionProvider'])
app.prepare(ctx_id=0, det_size=(640, 640))
img = ins_get_image('t1')
faces = app.get(img)
rimg = app.draw_on(img, faces)
cv2.imwrite("./t1_output.jpg", rimg)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the provided FaceAnalysis example, especially app.prepare and app.get, and review the repository for existing multiprocessing or multi-GPU entry points. Done means providing the requested checkpoints and multiprocessing example code for developers using multiple GPUs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100