arunmandal53 / facematch

Face match in python using Facenet and their pretrained model
99 stars 51 forks source link

ImportError: No module named align #8

Open KoteshwarSurga opened 5 years ago

KoteshwarSurga commented 5 years ago

Hi, I am trying to execute your code for detection but it is throwing error as

ImportError: No module named align

arunmandal53 commented 5 years ago

use python3 and run from the script directory

KoteshwarSurga commented 5 years ago

TypeError: reduce_max() got an unexpected keyword argument 'keepdims'

Thank u for your response when i tried with python3 it is throwing the above error.

On Fri, Mar 15, 2019 at 12:24 PM arunmandal53 notifications@github.com wrote:

use python3 and run from the script directory

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arunmandal53/facematch/issues/8#issuecomment-473178554, or mute the thread https://github.com/notifications/unsubscribe-auth/AqwPGXZMlu4n0aOAcZfVHzSNu_-4hAsZks5vW0OMgaJpZM4b10eu .

arunmandal53 commented 5 years ago

seems like Tensorflow version issue see https://github.com/arunmandal53/facematch/commit/d019ae353b7bbbb0651c1ad7143918b07a5fe4ec#diff-7b86cf4cb688073525084093b33a8889

KoteshwarSurga commented 5 years ago

Thank u I installed your requirements.txt and now it is working.

On Fri, Mar 15, 2019 at 12:31 PM arunmandal53 notifications@github.com wrote:

seems like Tensorflow version issue see d019ae3

diff-7b86cf4cb688073525084093b33a8889

https://github.com/arunmandal53/facematch/commit/d019ae353b7bbbb0651c1ad7143918b07a5fe4ec#diff-7b86cf4cb688073525084093b33a8889

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arunmandal53/facematch/issues/8#issuecomment-473180103, or mute the thread https://github.com/notifications/unsubscribe-auth/AqwPGamRxmmsj_ZAu_9Y4frXJT5ssaYxks5vW0VTgaJpZM4b10eu .

KoteshwarSurga commented 5 years ago

Hi,

I have an image of me in that me and my friends are wearing college Id cards.

When I used the face detect demo code it is detecting faces in the id card and also the person but the problem is when I used to crop the images it was croping the small images of IDs cards not the person images not all the images some images

I searched a lot but I didn't find the solution Cab you help me in this problem.

On 15-Mar-2019 1:01 PM, "skotesh war" skoteshwar930@gmail.com wrote:

Thank u I installed your requirements.txt and now it is working.

On Fri, Mar 15, 2019 at 12:31 PM arunmandal53 notifications@github.com wrote:

seems like Tensorflow version issue see d019ae3#diff- 7b86cf4cb688073525084093b33a8889 https://github.com/arunmandal53/facematch/commit/d019ae353b7bbbb0651c1ad7143918b07a5fe4ec#diff-7b86cf4cb688073525084093b33a8889

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arunmandal53/facematch/issues/8#issuecomment-473180103, or mute the thread https://github.com/notifications/unsubscribe-auth/AqwPGamRxmmsj_ZAu_9Y4frXJT5ssaYxks5vW0VTgaJpZM4b10eu .

arunmandal53 commented 5 years ago

Does it show rectangle properly on faces ? If yes then use that rect coordinates to crop.

KoteshwarSurga commented 5 years ago

It showing rectangle accurately but it was drawing my face and also my identity card face which iam wearing. When I used to crop it is cropping my id card photo and not my face and when I am comparing with my face it was showing false results.

On 17-Mar-2019 2:27 PM, "arunmandal53" notifications@github.com wrote:

Does it show rectangle properly on faces ? If yes then use that rect coordinates to crop.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arunmandal53/facematch/issues/8#issuecomment-473640468, or mute the thread https://github.com/notifications/unsubscribe-auth/AqwPGYgTNFUWhnK1prmK4K5KT-7xQppFks5vXgOWgaJpZM4b10eu .

KoteshwarSurga commented 5 years ago

Hi, when i used your face_match_demo.py i got this error. Traceback (most recent call last): File "face_match_demo.py", line 76, in distance = compare2face(img1, img2) File "face_match_demo.py", line 62, in compare2face face1 = getFace(img1) File "face_match_demo.py", line 40, in getFace boundingboxes, = detect_face.detect_face(img, minsize, pnet, rnet, onet, threshold, factor) File "/home/tgt/Pictures/facematch-master/align/detect_face.py", line 332, in detectface boxes, = generateBoundingBox(out1[0,:,:,1].copy(), out0[0,:,:,:].copy(), scale, threshold[0]) TypeError: 'float' object is not subscriptable

Legionof7 commented 5 years ago

When running with Python3, I get the error Traceback (most recent call last): File "face_embeddings_demo.py", line 1, in <module> import tensorflow as tf ModuleNotFoundError: No module named 'tensorflow'