-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial commit for adaptation of dlib sample mmod object detector code
Lineage: * https://github.com/davisking/dlib/blob/master/examples/dnn_mmod_find_cars2_ex.cpp * https://github.com/davisking/dlib/blob/master/examples/dnn_mmod_train_find_cars_ex.cpp
- Loading branch information
1 parent
507d039
commit 68fcb05
Showing
8 changed files
with
1,344 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,12 @@ | |
*.exe | ||
*.out | ||
*.app | ||
|
||
# cmake/hunter | ||
_*/ | ||
|
||
# osx | ||
.DS_Store | ||
|
||
# emacs | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
cmake_minimum_required(VERSION 3.8) | ||
|
||
option(HUNTER_KEEP_PACKAGE_SOURCES "Keep" ON) | ||
|
||
include("cmake/HunterGate.cmake") | ||
|
||
HunterGate( | ||
URL "https://github.com/ruslo/hunter/archive/v0.22.16.tar.gz" | ||
SHA1 "84153076a3cebf4869c904fa5c93ea309386b583" | ||
LOCAL # cmake/Hunter/config.cmake | ||
) | ||
|
||
project(dlib_dnn_mmod_detect VERSION 0.0.1) | ||
|
||
hunter_add_package(dlib) | ||
find_package(dlib CONFIG REQUIRED) | ||
|
||
set(app_list dnn_mmod_find_thing_ex dnn_mmod_train_find_thing_ex) | ||
|
||
foreach(name ${app_list}) | ||
add_executable(${name} ${name}.cpp dnn_mmod_sample_detector.h) | ||
target_link_libraries(${name} PUBLIC dlib::dlib) | ||
install(TARGETS ${name} DESTINATION bin) | ||
endforeach() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
set(dlib_cmake_args | ||
DLIB_HEADER_ONLY=OFF #all previous builds were header on, so that is the default | ||
DLIB_ENABLE_ASSERTS=OFF #must be set on/off or debug/release build will differ and config will not match one | ||
DLIB_NO_GUI_SUPPORT=ON | ||
DLIB_ISO_CPP_ONLY=OFF # needed for directory navigation code (loading training data) | ||
DLIB_JPEG_SUPPORT=OFF # https://github.com/hunter-packages/dlib/blob/eb79843227d0be45e1efa68ef9cc6cc187338c8e/dlib/CMakeLists.txt#L422-L432 | ||
DLIB_LINK_WITH_SQLITE3=OFF | ||
DLIB_USE_BLAS=OFF | ||
DLIB_USE_LAPACK=OFF | ||
DLIB_USE_CUDA=ON | ||
DLIB_PNG_SUPPORT=ON | ||
DLIB_JPEG_SUPPORT=ON | ||
DLIB_GIF_SUPPORT=OFF | ||
DLIB_USE_MKL_FFT=OFF | ||
HUNTER_INSTALL_LICENSE_FILES=dlib/LICENSE.txt | ||
) | ||
|
||
hunter_config(dlib VERSION ${HUNTER_dlib_VERSION} CMAKE_ARGS ${dlib_cmake_args} DUMMY_SOURCES=2) |
Oops, something went wrong.