-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Illegal Instruction. #11
Comments
The issue is most likely that dlib was compiled with support for AVX and/or SSE4 instructions, but your cpu is too old to support them (pre-2011, I think). The easiest solution is to download dlib and compile it yourself. But when you do that, you need to make one change. Before compiling dlib, edit dlib's tools/python/CMakeLists.txt file from:
to:
And then compile and install dlib and the dlib python extensions. Hopefully that should fix it. |
Correct. My Laptop is from 2008. The solution you suggested has fixed my issue. The script is able to recognize faces. Thank you. |
face_recognition version:0.1.0 |
Did you follow the instructions above? |
I try this method |
i have got this error ...how to solve it?? ` >>>import face_recognition Traceback (most recent call last): |
|
Hi ageitgeym thanks for reading and your vmmachine |
@Forsskieken The Intel Xeon W3680 (released 2010) doesn't support AVX instructions (released 2011). So that's why it's failing. Sorry! Your only option is to compile dlib without AVX enabled. |
Hi There the compilation succeeded but when I want to install it I get following error:
python3-setuptools is already the newest version (20.7.0-1). I then did:
But how do I make sure pycharms uses this newly compiled version Thanks and kind Regards |
@Forsskieken The problem was You can choose when version of Python you are using in Pycharm by going to your project settings and changing the interpreter it's using. Just make sure you choose Python 3 for any new projects you create. |
I am getting error like this.. |
@PreethiRe Please don't post on closed issues with new unrelated problems. In any case, the answer to your question is here in the README. You need to upgrade to a newer version of dlib. |
I got it.. Thank you
…On 7 August 2017 at 11:58, Adam Geitgey ***@***.***> wrote:
@PreethiRe <https://github.com/preethire> Please don't post on closed
issues with new unrelated problems. In any case, the answer to your
question is here
<https://github.com/ageitgey/face_recognition#common-issues> in the
README. You need to upgrade to a newer version of dlib.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AdM_64JC_7r8Jpt8d4t261iGhxmwdgjYks5sV15ngaJpZM4MgsJP>
.
|
how to fix this..? |
@PreethiRe Again, please don't post on closed issues with new unrelated problems. But I'm guessing you accidentally called your own file "face_recognition.py". You can't name your own file that or Python will find that file instead of the library you are trying to import. |
I have an acer aspire es1-512, I'm facing this error and have already tried the easy solution proposed. And don't know what else to do. |
@Soulzerz Try installing dlib by downloading the source code and running this command inside the source folder:
|
@ageitgey Thanks, that made it work! 😄 |
Great! :) |
Hi, I have been getting this error and I'm unable to understand why this keeps on happening. import face_recognition_models image = face_recognition_models.load_image_file("abc.jpg") Traceback (most recent call last): File "", line 3, in AttributeError: module 'face_recognition_models' has no attribute 'load_image_file' |
Hi, I am new to PyCharm. I needed a library face_recognition for my project so I installed it using
Thanks for your help. |
Hello, I didn't find this line in the specified location and also my macbook(macbook pro 2010 mid) supports SSE4 but doesn't support AVX. How do I build dlib taking into consideration this issue. I tried reinstalling dlib a lot of times but each time I get Illegal Instruction: 4. |
Buenos dias , la libreria face_recognition , confunde personas al identifcar , lo llame falso positivo , para cuando van a resolver este problema . Estoy haciendo un sistema de reconocimiento facial y me gustaria saber para cuando tienen la solucion. |
Hi!, could you give more details? It always happens? when it happens it's only for a moment or for a long time? is it just one face or many? |
El falso positivo sucede todos los dias , pasan 10 personas y confunde
3 personas ...
|
Buen dia , como se haria para calcular 83 puntos de la cara , la
libreria calcula 68 puntos , 7 objetos faciales y crea un vector de
128 puntos .
El 18/2/20, cirilo linares <rakode33@gmail.com> escribió:
… El falso positivo sucede todos los dias , pasan 10 personas y confunde
3 personas ...
|
I have the issue in MacOS 12.0.1 (M1 chip). Error: |
Description
Hey, first of all Thank you so much for this library. Its Amazing.
When i run the script line by line, i get an error "Illegal Instruction" at the following line
"my_face_encoding = face_recognition.face_encodings(picture_of_me)[0]"
The python terminal exits after this. Please let me know if i am doing something wrong.
What I Did
I am using Linux Mint and i pip installed face_recognition (got all libraries including dlib installed)
The text was updated successfully, but these errors were encountered: