Lowers the face analyzer making it a bit faster

This commit is contained in:
Kenneth Estanislao
2026-02-12 18:47:42 +08:00
parent 91baa6c0a5
commit e544889805
+3 -2
View File
@@ -27,9 +27,10 @@ def get_face_analyser() -> Any:
if FACE_ANALYSER is None:
FACE_ANALYSER = insightface.app.FaceAnalysis(
name='buffalo_l',
providers=modules.globals.execution_providers
providers=modules.globals.execution_providers,
allowed_modules=['detection', 'recognition']
)
FACE_ANALYSER.prepare(ctx_id=0, det_size=(640, 640))
FACE_ANALYSER.prepare(ctx_id=0, det_size=(320, 320))
return FACE_ANALYSER