mirror of
https://github.com/modelscope/modelscope.git
synced 2025-12-25 04:29:22 +01:00
fix numpy bug
修复numpy版本导致的bug Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/14816762 * fix numpy bug
This commit is contained in:
@@ -767,6 +767,7 @@ def align_img(img, lm, lm3D, mask=None, target_size=224., rescale_factor=102.):
|
||||
|
||||
# calculate translation and scale factors using 5 facial landmarks and standard landmarks of a 3D face
|
||||
t, s = POS(lm5p.transpose(), lm3D.transpose())
|
||||
t = t.squeeze()
|
||||
s = rescale_factor / s
|
||||
|
||||
# processing the image
|
||||
|
||||
Reference in New Issue
Block a user