fetch available providers
This commit is contained in:
parent
c18f66697a
commit
ae3b2f8d3c
@ -1,9 +1,10 @@
|
||||
import cv2
|
||||
import insightface
|
||||
import onnxruntime
|
||||
from core.config import get_face
|
||||
from core.utils import rreplace
|
||||
|
||||
face_swapper = insightface.model_zoo.get_model('inswapper_128.onnx', providers=['CUDAExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider'])
|
||||
face_swapper = insightface.model_zoo.get_model('inswapper_128.onnx', providers=onnxruntime.get_available_providers())
|
||||
|
||||
|
||||
def process_video(source_img, frame_paths):
|
||||
|
Loading…
Reference in New Issue
Block a user