feat(face): add scrfd face detecter/landmarker

This commit is contained in:
Syd Xu
2021-10-30 20:29:00 +08:00
parent 50e43fc864
commit 9413dd6a0e
82 changed files with 1101 additions and 661 deletions

View File

@@ -23,8 +23,12 @@ func main() {
modelPath := filepath.Join(dataPath, "./models")
common.CreateGPUInstance()
defer common.DestroyGPUInstance()
cpuCores := common.GetBigCPUCount()
common.SetOMPThreads(cpuCores)
log.Printf("CPU big cores:%d\n", cpuCores)
d := ultralightDetector(modelPath)
defer d.Destroy()
common.SetEstimatorThreads(d, cpuCores)
detect(d, imgPath, "ultralight-pose3.jpg")
}