ShiqiYu / libfacedetection

An open source library for face detection in images. The face detection speed can reach 1000FPS.
Other
12.33k stars 3.05k forks source link

Examples dont work #254

Closed Allius27 closed 4 years ago

Allius27 commented 4 years ago

Good day.

I build your project and examples with opencv 4.3.0, but it doesn't work

Steps: 1) build opencv 2) git clone https://github.com/ShiqiYu/libfacedetection 3) cd libfacedetection 4) mkdir build && cd build 5) cmake -DDEMO=ON -DOpenCV_DIR=/home/i123/install/lib/cmake/opencv4 .. && make 6) ./detect-camera-demo 0

And as result I got this :"Illegal instruction (core dumped)"

Might your library work under Ubuntu?

Allius27 commented 4 years ago

Or is that incompatible with latest opencv?

ShiqiYu commented 4 years ago

maybe you enabled AVX2 or AVX512 that your CPU doesn't support.

Allius27 commented 4 years ago

True, examples work with turned off AVX2 and AVX512 options(intel core i7)

Thank you for advice

ShiqiYu commented 4 years ago

You can enable AVX2 and disable AVX512 to gain better speed

On Thu, May 21, 2020 at 2:45 AM Ilya Solozobov notifications@github.com wrote:

True, examples work with turned off AVX2 and AVX512 options(intel core i7)

Thank you for advice

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ShiqiYu/libfacedetection/issues/254#issuecomment-631656146, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWR4HJDQZP3G2A4F6N566LRSQQOBANCNFSM4NF5CIGQ .

Allius27 commented 4 years ago

I tryed build project with different options, and for it works only with turned off options

ShiqiYu commented 4 years ago

It's strange. i7 CPU should support AVX2.

On Thu, May 21, 2020 at 5:07 PM Ilya Solozobov notifications@github.com wrote:

I tryed build project with different options, and for it works only with turned off options

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ShiqiYu/libfacedetection/issues/254#issuecomment-631975139, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWR4HN4SLNLGOWBUTHE6R3RSTVMDANCNFSM4NF5CIGQ .