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

TypeError: 'NoneType' object is not iterable #2

Open
sekharBuddha opened this issue May 28, 2018 · 4 comments
Open

TypeError: 'NoneType' object is not iterable #2

sekharBuddha opened this issue May 28, 2018 · 4 comments

Comments

@sekharBuddha
Copy link

Traceback (most recent call last):
File "rec-feat.py", line 112, in
recognize()
File "rec-feat.py", line 103, in recognize
extract_face_info(img, img_rgb, database,ear)
File "rec-feat.py", line 59, in extract_face_info
name, min_dist = recognize_face(image, database)
TypeError: 'NoneType' object is not iterable

@akshaybahadur21
Copy link
Owner

please provide full stack trace

@sarkarsaikat
Copy link

Line: name, min_dist = recognize_face(image, database) in "def extract_face_info(img, img_rgb, database,ear):" gives this error.

Traceback (most recent call last):

File "", line 1, in
runfile('C:/.../Documents/Python Scripts/Facial/Facial-Recognition-using-Facenet-master/rec-feat.py', wdir='C:.../Documents/Python Scripts/Facial/Facial-Recognition-using-Facenet-master')

File "C:...\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
execfile(filename, namespace)

File "C:...\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/.../Documents/Python Scripts/Facial/Facial-Recognition-using-Facenet-master/rec-feat.py", line 113, in
recognize()

File "C:/.../Documents/Python Scripts/Facial/Facial-Recognition-using-Facenet-master/rec-feat.py", line 104, in recognize
extract_face_info(img, img_rgb, database,ear)

File "C:/.../Documents/Python Scripts/Facial/Facial-Recognition-using-Facenet-master/rec-feat.py", line 60, in extract_face_info
name, min_dist = recognize_face(image, database)

TypeError: 'NoneType' object is not iterable

@harrytsz
Copy link

harrytsz commented Jul 1, 2019

I am curious if this problem has been solved?So sad, I have encountered the same problem.

@achmadrrb
Copy link

check if your image is valid. i've faced the same problem, my problem was because there was a .DS_Store file on macOS. if not, check the image if there is a face on the image

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

No branches or pull requests

5 participants