mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-07-31 04:00:12 -07:00
refactoring
This commit is contained in:
parent
8489949f2c
commit
30ba51edf7
24 changed files with 663 additions and 459 deletions
|
@ -58,7 +58,7 @@ def get_available_devices() -> List[ORTDeviceInfo]:
|
|||
class DFMModel:
|
||||
def __init__(self, model_path : Path, device : ORTDeviceInfo = None):
|
||||
if device is None:
|
||||
device = lib_ort.get_cpu_device()
|
||||
device = lib_ort.get_cpu_device_info()
|
||||
self._model_path = model_path
|
||||
|
||||
sess = self._sess = lib_ort.InferenceSession_with_device(str(model_path), device)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue