insightface==0.3.2

This commit is contained in:
Jia Guo
2021-06-16 22:43:11 +08:00
parent a9272edf2e
commit 4b47282f50
6 changed files with 2881 additions and 6 deletions

View File

@@ -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'

View File

@@ -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 = {}

View File

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1 @@
#error Do not use this file, it is the result of a failed Cython compilation.

View File

@@ -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(),
)