Closed Grabber closed 5 years ago
The same issue!
same issue here. Ubuntu 18
@kaijunzhan @Grabber @zhangpiu You can take a look at mine for reference: cmake_minimum_required(VERSION 3.5) project(ShiqiYu_FaceDetect) set(CMAKE_CXX_STANDARD 11) SET( CMAKE_CXX_FLAGS "-std=c++11 -O3 ") add_definitions( -DOPENCV )
set(CMAKE_CXX_FLAGS "-mavx -mfma")
set(OpenCV_DIR $ENV{HOME}/bin/opencv-3.4.0/install/share/OpenCV) find_package( OpenCV REQUIRED ) include_directories( ${OpenCV_INCLUDE_DIRS} )
include_directories(src)
SET(SRC_FILES src/facedetectcnn-model.cpp src/facedetectcnn.cpp src/facedetectcnn-floatdata.cpp) add_library(libface SHARED ${SRC_FILES}) add_executable(libface_example example/libfacedetectcnn-example.cpp) target_link_libraries(libface_example ${OpenCV_LIBS} libface)
############### The key point may be : set(CMAKE_CXX_FLAGS "-mavx -mfma") Hope this will help you.
@HongChow it works
when i follow @HongChow make success, but when i run the demo,it is failed.
illegal hardware instruction (core dumped)
@kaijunzhan @Grabber @zhangpiu You can take a look at mine for reference: cmake_minimum_required(VERSION 3.5) project(ShiqiYu_FaceDetect) set(CMAKE_CXX_STANDARD 11) SET( CMAKE_CXX_FLAGS "-std=c++11 -O3 ") add_definitions( -DOPENCV )
set(CMAKE_CXX_FLAGS "-mavx -mfma")
set(OpenCV_DIR $ENV{HOME}/bin/opencv-3.4.0/install/share/OpenCV) find_package( OpenCV REQUIRED ) include_directories( ${OpenCV_INCLUDE_DIRS} )
include_directories(src)
SET(SRC_FILES src/facedetectcnn-model.cpp src/facedetectcnn.cpp src/facedetectcnn-floatdata.cpp) add_library(libface SHARED ${SRC_FILES}) add_executable(libface_example example/libfacedetectcnn-example.cpp) target_link_libraries(libface_example ${OpenCV_LIBS} libface)
############### The key point may be : set(CMAKE_CXX_FLAGS "-mavx -mfma") Hope this will help you.
Thank you! It did work. I successfully build the demo using
mkdir build && cd build && cmake -DENABLE_AVX2=ON -DENABLE_INT8=ON -DCMAKE_EXE_LINKER_FLAGS='-static-libstdc++' .. && make
when i follow @HongChow make success, but when i run the demo,it is failed.
illegal hardware instruction (core dumped)
I am not sure about your case. One thing is that you should confirm your cpu supports some instruction sets such as avx... So your cpu cannot be too old.
It works for me except many errors / low accuracy- only one face it will say it has 5 faces. Another issue is the display image is very large
Get Outlook for iOShttps://aka.ms/o0ukef
From: HongChow notifications@github.com Sent: Monday, March 18, 2019 6:50:33 PM To: ShiqiYu/libfacedetection Cc: kaijunzhan; Mention Subject: Re: [ShiqiYu/libfacedetection] CMakeLists.txt doesn't work (#91)
when i follow @HongChowhttps://github.com/HongChow make success, but when i run the demo,it is failed. illegal hardware instruction (core dumped) I am not sure about your case. One thing is that you should confirm your cpu support some instruction sets such as avx... So your cpu cannot be too old.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/ShiqiYu/libfacedetection/issues/91#issuecomment-474166433, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATrA6iwAg-bEg5qrB9IwkzJuTIey9bsGks5vYEJpgaJpZM4b1pcw.
int8x8x2_t a, b; int16x8_t result_vec; int32x4_t d; a = vld2_s8(p1 + i); b = vld2_s8(p2 + i); vdupq_n_s16 sum += vgetq_lane_s32(d, 3); showing error . erroring out . Should i include all these== arm64intr.h arm_acle.h, arm_cmse.h arm_fp16.h arm_mve.h , arm_neon.h ?