mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-08-14 10:47:00 -07:00
splitting large files
This commit is contained in:
parent
30cc36c8e4
commit
ee7d471f20
16 changed files with 805308 additions and 7 deletions
BIN
modelhub/onnx/S3FD/S3FD.onnx.part0
Normal file
BIN
modelhub/onnx/S3FD/S3FD.onnx.part0
Normal file
Binary file not shown.
BIN
modelhub/onnx/S3FD/S3FD.onnx.part1
Normal file
BIN
modelhub/onnx/S3FD/S3FD.onnx.part1
Normal file
Binary file not shown.
|
@ -7,6 +7,7 @@ from xlib.image import ImageProcessor
|
|||
from xlib.onnxruntime import (InferenceSession_with_device, ORTDeviceInfo,
|
||||
get_available_devices_info)
|
||||
|
||||
from xlib.file import SplittedFile
|
||||
|
||||
class S3FD:
|
||||
|
||||
|
@ -19,6 +20,8 @@ class S3FD:
|
|||
raise Exception(f'device_info {device_info} is not in available devices for S3FD')
|
||||
|
||||
path = Path(__file__).parent / 'S3FD.onnx'
|
||||
SplittedFile.merge(path, delete_parts=False)
|
||||
|
||||
self._sess = sess = InferenceSession_with_device(str(path), device_info)
|
||||
self._input_name = sess.get_inputs()[0].name
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue