Skip to content

Commit

Permalink
Update centerface.py
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimpoutaraud committed Mar 20, 2022
1 parent b3f12a3 commit 844bec7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion musicalgestures/_centerface.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(self, landmarks=True):
module_path = os.path.abspath(os.path.dirname(musicalgestures.__file__))

self.landmarks = landmarks
self.net = cv2.dnn.readNetFromONNX(module_path + 'models/centerface.onnx')
self.net = cv2.dnn.readNetFromONNX(module_path + '/models/centerface.onnx')
self.img_h_new, self.img_w_new, self.scale_h, self.scale_w = 0, 0, 0, 0

def __call__(self, img, height, width, threshold=0.5):
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
setup(
name='musicalgestures',
packages=['musicalgestures'],
version='v1.2.12',
version='v1.2.13',
license='GNU General Public License v3 (GPLv3)',
description='Musical Gestures Toolbox for Python',
long_description=README,
Expand All @@ -23,7 +23,7 @@
author='University of Oslo fourMs Lab',
author_email='a.r.jensenius@imv.uio.no',
url='https://github.com/fourMs/MGT-python',
download_url='https://github.com/fourMs/MGT-python/archive/v1.2.12.tar.gz',
download_url='https://github.com/fourMs/MGT-python/archive/v1.2.13.tar.gz',
keywords=['Computer Vision', 'Motion Analysis',
'Musical Gestures', 'Video-Analysis'],
install_requires=[
Expand Down

0 comments on commit 844bec7

Please sign in to comment.