package 0.4.1

This commit is contained in:
Jia Guo
2021-08-23 19:33:51 +08:00
parent 6bc2be4454
commit cdc3d4ed5d
3 changed files with 9 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ except ImportError:
"Unable to import dependency onnxruntime. "
)
__version__ = '0.4'
__version__ = '0.4.1'
from . import model_zoo
from . import utils

View File

@@ -47,8 +47,10 @@ def estimate_norm(lmk, image_size=112, mode='arcface'):
min_index = []
min_error = float('inf')
if mode == 'arcface':
assert image_size == 112
src = arcface_src
if image_size == 112:
src = arcface_src
else:
src = float(image_size) / 112 * arcface_src
else:
src = src_map[image_size]
for i in np.arange(src.shape[0]):

View File

@@ -24,11 +24,13 @@ def find_version(*file_paths):
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
pypandoc_enabled = True
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError, ModuleNotFoundError):
long_description = open('README.md').read()
pypandoc_enabled = False
#import pypandoc
#long_description = pypandoc.convert('README.md', 'rst')
@@ -88,3 +90,5 @@ setup(
include_dirs=numpy.get_include(),
)
print('pypandoc enabled:', pypandoc_enabled)