-
Notifications
You must be signed in to change notification settings - Fork 305
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
Ubuntu - Illegal instruction (core dumped) #204
Comments
@carlberg74 Please tell me more information about environementals. |
Yes, I have followed the quickguide. Env: Compiling on Windows with runtime target: linux-x64, target framework .net 5.0 (and 6.0) and copied to linux. Tested with python3, just to see if I was missing some dependencies. Script: Runs without error and outputs cordinates for a rectagle. |
Any idea what else I can try? |
Sorry, I am very busy so I have no time to go through issue untill this weekend. |
I created Ubuntu 20.04 Desktop on Hyper-V and try to wrok FRDN program. 1. Install .NET SDK$ wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
$ sudo dpkg -i packages-microsoft-prod.deb
$ rm packages-microsoft-prod.deb
$ sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-2.1 2. Install git and clone repo$ sudo aot-get install git
$ git clone https://github.com/takuya-takeuchi/FaceRecognitionDotNet 3. Install dependencies$ sudo apt-get install libx11-6 libopenblas-dev 4. Try Example$ cd examples/Benchmark
$ dotnet remove reference ../../src/FaceRecognitionDotNet/FaceRecognitionDotNet.csproj
$ dotnet add package FaceRecognitionDotNet
$ git clone https://github.com/ageitgey/face_recognition_models
$ dotnet run -c Release -- -m=face_recognition_models/face_recognition_models/models
Benchmarks
Timings at 240p:
- Face locations: 0.0396s (25.25 fps)
- Face landmarks: 0.0012s (833.33 fps)
- Encode face (inc. landmarks): 0.0172s (58.14 fps)
- End-to-end: 0.0570s (17.54 fps)
Timings at 480p:
- Face locations: 0.1516s (6.60 fps)
- Face landmarks: 0.0012s (833.33 fps)
- Encode face (inc. landmarks): 0.0172s (58.14 fps)
- End-to-end: 0.1688s (5.92 fps)
Timings at 720p:
- Face locations: 0.3480s (2.87 fps)
- Face landmarks: 0.0012s (833.33 fps)
- End-to-end: 0.3674s (2.72 fps)0.0174s (57.47 fps)
Timings at 1080p:
- Face locations: 0.7806s (1.28 fps)
- Face landmarks: 0.0012s (833.33 fps)
- Encode face (inc. landmarks): 0.0174s (57.47 fps)
- End-to-end: 0.7978s (1.25 fps It works fine so wiki is not wrong. |
@carlberg74 |
$ lscpu |
@carlberg74 |
No response and feedback |
Trying to run som FaceEncodings on linux, processing some images.
but it crashes on line FaceRecognition.Create below.
My code:
Console.WriteLine("- Create Model Parameters!");
var modelParameter = new ModelParameter
{
PosePredictor68FaceLandmarksModel = File.ReadAllBytes("models/shape_predictor_68_face_landmarks.dat"),
PosePredictor5FaceLandmarksModel = File.ReadAllBytes("models/shape_predictor_5_face_landmarks.dat"),
FaceRecognitionModel = File.ReadAllBytes("models/dlib_face_recognition_resnet_model_v1.dat"),
CnnFaceDetectorModel = File.ReadAllBytes("models/mmod_human_face_detector.dat")
};
Added some gdb dump output:
/publish$ gdb ./ConsoleApp220.04.1) 9.2GNU gdb (Ubuntu 9.2-0ubuntu1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./ConsoleApp2...
(No debugging symbols found in ./ConsoleApp2)
(gdb) run
Starting program: /home/user/publish/ConsoleApp2
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff7072700 (LWP 14050)]
[New Thread 0x7ffff6871700 (LWP 14051)]
[New Thread 0x7ffff6050700 (LWP 14052)]
[New Thread 0x7ffff584f700 (LWP 14053)]
[New Thread 0x7ffff4a66700 (LWP 14054)]
[New Thread 0x7ffff3f28700 (LWP 14055)]
[New Thread 0x7ffff1d0a700 (LWP 14056)]
[New Thread 0x7ffff1505700 (LWP 14057)]
[New Thread 0x7ffff14c0700 (LWP 14058)]
Hello Face Recognition!
Init
[New Thread 0x7ffff0cbf700 (LWP 14060)]
[Thread 0x7ffff1505700 (LWP 14057) exited]
[New Thread 0x7ffff00f8700 (LWP 14071)]
[New Thread 0x7fffef8f7700 (LWP 14072)]
[New Thread 0x7fff7d48c700 (LWP 14073)]
Thread 1 "ConsoleApp2" received signal SIGILL, Illegal instruction.
0x00007fff282e0cbc in get_frontal_face_detector () from** /home/user/publish/libDlibDotNetNative.so**
(gdb)
I have tested:
Paths to models; if those are incorrect I get an clear error that models are not found.
file access: all models files are directory is accessable..
root: ran as root, same error.
.net versions: .net 5 and 6, same error.
windows: code works on windows.
lib: .so files are exists in directory
~/publish$ ls *.so
libDlibDotNetNativeDnnAgeClassification.so
libDlibDotNetNativeDnn.so
libDlibDotNetNativeDnnEmotionClassification.so
libDlibDotNetNative.so
libDlibDotNetNativeDnnGenderClassification.so
Any sugestions what I can try?
Cheers
-Anders
The text was updated successfully, but these errors were encountered: