fetch available providers
This commit is contained in:
parent
b215b10dc4
commit
c18f66697a
@ -1,6 +1,7 @@
|
|||||||
import insightface
|
import insightface
|
||||||
|
import onnxruntime
|
||||||
|
|
||||||
face_analyser = insightface.app.FaceAnalysis(name='buffalo_l', providers=['CUDAExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider'])
|
face_analyser = insightface.app.FaceAnalysis(name='buffalo_l', providers=onnxruntime.get_available_providers())
|
||||||
face_analyser.prepare(ctx_id=0, det_size=(640, 640))
|
face_analyser.prepare(ctx_id=0, det_size=(640, 640))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user