maskdetection
maskdetection copied to clipboard
how to compile for cpu? CMake Error at /usr/share/cmake-3.10/Modules/FindCUDA.cmake:682 (message): Specify CUDA_TOOLKIT_ROOT_DIR Call Stack (most recent call first): lib/CMakeLists.txt:4 (find_package)
I don't have GPU, I am using CPU. When I was following the instructions given in the README to compile.
$ cmake ..
I got the following errors.
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/share/cmake-3.10/Modules/FindCUDA.cmake:682 (message):
Specify CUDA_TOOLKIT_ROOT_DIR
Call Stack (most recent call first):
lib/CMakeLists.txt:4 (find_package)
-- Configuring incomplete, errors occurred!
Can anyone tell me how to fix it?
Hi, I have the same problem...I haven't GPU. Did you find other solution? Thanks
use opencv dnn to load the model.
use opencv dnn to load the model.
Hi @amitjslearn could you please show us your CMakeLists for using CPU?
Thank you!
Maybe you can build your caffe with CPU-only and comment the CUDA-related lines in CMakeList.txt
use opencv dnn to load the model.
Hi @amitjslearn could you please show us your CMakeLists for using CPU?
Thank you!
If you have opencv (for python) installed, then you don't need to worry about cmake stuff, just use the model path to load the model in cv2.dnn
Hey @amitjslearn, thanks for the previous comment. How is the model performing on your data? Do you think there is any way to localise the location of the mask?
They don't have good documentation about how to perceive the model's output, so I wasn't able to make anything out of it. You can try to localize the face first then try for mask detection.
I am not being able to load the model with opencv either.
I am not being able to load the model with opencv either.
Please, comment with the code you are using to load the model, then someone will be able to help properly.