mirror of
https://github.com/deepinsight/insightface.git
synced 2025-12-30 08:02:27 +00:00
insightface==0.3.2
This commit is contained in:
@@ -11,11 +11,11 @@ except ImportError:
|
||||
"Unable to import dependency onnxruntime. "
|
||||
)
|
||||
|
||||
__version__ = '0.3'
|
||||
__version__ = '0.3.2'
|
||||
|
||||
from . import model_zoo
|
||||
from . import utils
|
||||
from . import app
|
||||
from . import data
|
||||
from . import thirdparty
|
||||
|
||||
DEFAULT_MP_NAME = 'antelope'
|
||||
|
||||
@@ -20,7 +20,6 @@ from ..utils import DEFAULT_MP_NAME
|
||||
|
||||
__all__ = ['FaceAnalysis']
|
||||
|
||||
|
||||
class FaceAnalysis:
|
||||
def __init__(self, name=DEFAULT_MP_NAME, root='~/.insightface/models', allowed_modules=None):
|
||||
self.models = {}
|
||||
|
||||
0
python-package/insightface/thirdparty/__init__.py
vendored
Normal file
0
python-package/insightface/thirdparty/__init__.py
vendored
Normal file
2872
python-package/insightface/thirdparty/face3d/mesh/__init__.cpp
vendored
Normal file
2872
python-package/insightface/thirdparty/face3d/mesh/__init__.cpp
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
python-package/insightface/thirdparty/face3d/mesh/io.cpp
vendored
Normal file
1
python-package/insightface/thirdparty/face3d/mesh/io.cpp
vendored
Normal file
@@ -0,0 +1 @@
|
||||
#error Do not use this file, it is the result of a failed Cython compilation.
|
||||
@@ -40,16 +40,18 @@ requirements = [
|
||||
'matplotlib',
|
||||
'Pillow',
|
||||
'scipy',
|
||||
'opencv-python',
|
||||
#'opencv-python',
|
||||
'scikit-learn',
|
||||
'scikit-image',
|
||||
'easydict',
|
||||
'cython',
|
||||
#'cython',
|
||||
'albumentations',
|
||||
'prettytable',
|
||||
]
|
||||
|
||||
extensions = [
|
||||
Extension("insightface.thirdparty.face3d.mesh.cython.mesh_core_cython", ["insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.pyx", "insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp"], language='c++'),
|
||||
Extension("insightface.thirdparty.face3d.mesh.cython.mesh_core_cython",
|
||||
["insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.pyx", "insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp"], language='c++'),
|
||||
]
|
||||
data_images = glob.glob('insightface/data/images/*.jpg')
|
||||
|
||||
@@ -72,6 +74,7 @@ setup(
|
||||
include_package_data=True,
|
||||
entry_points={"console_scripts": ["insightface-cli=insightface.commands.insightface_cli:main"]},
|
||||
install_requires=requirements,
|
||||
headers=['insightface/thirdparty/face3d/mesh/cython/mesh_core.h'],
|
||||
ext_modules=ext_modules,
|
||||
include_dirs=numpy.get_include(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user