Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
update Google FaceMesh model to the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
iperov committed Nov 12, 2021
1 parent 6978619 commit 894ec56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Binary file modified modelhub/onnx/FaceMesh/FaceMesh.onnx
Binary file not shown.
3 changes: 3 additions & 0 deletions modelhub/onnx/FaceMesh/FaceMesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ def __init__(self, device_info : ORTDeviceInfo):
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
Expand Down

0 comments on commit 894ec56

Please sign in to comment.