update Google FaceMesh model to the latest version

This commit is contained in:
iperov 2021-11-12 18:48:26 +04:00
commit 894ec56a93
2 changed files with 3 additions and 0 deletions

Binary file not shown.

View file

@ -30,6 +30,9 @@ class FaceMesh:
raise Exception(f'device_info {device_info} is not in available devices for FaceMesh')
path = Path(__file__).parent / 'FaceMesh.onnx'
if not path.exists():
raise FileNotFoundError(f'{path} not found')
self._sess = sess = InferenceSession_with_device(str(path), device_info)
self._input_name = sess.get_inputs()[0].name
self._input_width = 192