Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug in face_align.py #816

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

visionNoob
Copy link

@visionNoob visionNoob commented Jul 22, 2019

Hi. I'm Lee
First of all, thank you for your great works! It's very helpful to me.
I found a bug in face_align.py.

src = arcface_src

when i set mode=='arcface', ValueError is occur in tform.estimate(lmk, src[i]) because the shape of src is not (1, 5, 2)(maybe expected) but just (5, 2).

ValueError: shapes (2,) and (5,2) not aligned: 2 (dim 0) != 5 (dim 0)

so i modified the line that get into trouble provisionally. (just make it np.array form)

thank you

Hi. I'm Lee
First of all, thank you for your great works! It's very helpful to me.
I found a bug in face_align.py.
https://github.com/deepinsight/insightface/blob/be3f7b3e0e635b56d903d845640b048247c41c90/common/face_align.py#L68

when i select `mode=='arcface'` and exec `tform.estimate(lmk, src[i])`, ValueError is occur because shape of `src` is not like (1, 5, 2) but just (5, 2). 
```
ValueError: shapes (2,) and (5,2) not aligned: 2 (dim 0) != 5 (dim 0)
```
so i modified the line that get into trouble provisionally. (just make it np.array form)

thank you
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant