Created release v19.24
dlib/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Add SiLU activation layer (#2584)
dlib/cuda/cpu_dlib.cpp | 42 ++++++++++++++++++++++++++ dlib/cuda/cpu_dlib.h | 13 +++++++++ dlib/cuda/cuda_dlib.cu | 52 +++++++++++++++++++++++++++++++++ dlib/cuda/cuda_dlib.h | 13 +++++++++ dlib/cuda/tensor_tools.cpp | 28 ++++++++++++++++++ dlib/cuda/tensor_tools.h | 35 ++++++++++++++++++++++ dlib/dnn/layers.h | 73 +++++++++++++++++++++++++++++++++++++++++++++- dlib/dnn/layers_abstract.h | 38 ++++++++++++++++++++++++ dlib/dnn/visitors.h | 8 +++++ dlib/test/dnn.cpp | 32 ++++++++++++++++++++ 10 files changed, 333 insertions(+), 1 deletion(-)
Do not build WebP features if WebP is not available (#2582)
tools/imglab/src/cluster.cpp | 2 ++ tools/imglab/src/common.cpp | 2 ++ tools/imglab/src/common.h | 2 ++ tools/imglab/src/flip_dataset.cpp | 2 ++ tools/imglab/src/main.cpp | 12 ++++++++++++ 5 files changed, 20 insertions(+)
Add WebP support to imglab (#2580)
tools/imglab/src/cluster.cpp | 16 +++++++++++++--- tools/imglab/src/common.cpp | 10 ++++++++++ tools/imglab/src/common.h | 1 + tools/imglab/src/flip_dataset.cpp | 6 ++++++ tools/imglab/src/main.cpp | 37 +++++++++++++++++++++++++++++++------ 5 files changed, 61 insertions(+), 9 deletions(-)
Workaround for #2506 (#2570)
dlib/test/serialize.cpp | 57 ++++++++++++++++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 20 deletions(-)
Add webp support (#2565)
dlib/CMakeLists.txt | 19 ++++ dlib/cmake_utils/find_libwebp.cmake | 34 +++++++ dlib/config.h.in | 1 + dlib/image_io.h | 2 + dlib/image_loader/load_image.h | 17 +++- dlib/image_loader/webp_loader.cpp | 135 ++++++++++++++++++++++++++ dlib/image_loader/webp_loader.h | 141 +++++++++++++++++++++++++++ dlib/image_loader/webp_loader_abstract.h | 155 ++++++++++++++++++++++++++++++ dlib/image_saver/save_webp.cpp | 94 ++++++++++++++++++ dlib/image_saver/save_webp.h | 124 ++++++++++++++++++++++++ dlib/image_saver/save_webp_abstract.h | 54 +++++++++++ dlib/pixel.h | 68 +++++++++++++ dlib/test/image.cpp | 114 ++++++++++++++++++++++ examples/dnn_instance_segmentation_ex.cpp | 2 +- 14 files changed, 955 insertions(+), 5 deletions(-)
Treat warnings as errors (#2490)
dlib/algs.h | 2 +- dlib/array2d/array2d_kernel.h | 10 +++-- dlib/bayes_utils/bayes_utils.h | 1 - dlib/crc32/crc32_kernel_1.h | 21 ++-------- dlib/crc32/crc32_kernel_abstract.h | 2 +- dlib/cuda/cpu_dlib.cpp | 2 +- dlib/dnn/core.h | 6 +-- dlib/dnn/input.h | 9 ++--- dlib/dnn/visitors.h | 8 ++-- dlib/geometry/rectangle.h | 4 +- dlib/interfaces/map_pair.h | 3 ++ dlib/pixel.h | 10 +++++ dlib/static_map/static_map_kernel_1.h | 6 +-- dlib/svm/assignment_function.h | 2 +- dlib/svm/function.h | 46 --------------------- dlib/svm/function_abstract.h | 53 +------------------------ dlib/svm/pegasos.h | 2 +- dlib/svm/structural_svm_assignment_problem.h | 2 +- dlib/test/CMakeLists.txt | 21 ++++++++-- dlib/test/compress_stream.cpp | 2 +- dlib/test/geometry.cpp | 13 ++++++ dlib/test/gui/main.cpp | 2 - dlib/test/invoke.cpp | 3 ++ dlib/unordered_pair.h | 8 ++++ examples/dnn_instance_segmentation_train_ex.cpp | 18 ++++----- examples/object_detector_advanced_ex.cpp | 2 +- examples/server_iostream_ex.cpp | 8 ++-- 27 files changed, 100 insertions(+), 166 deletions(-)
Use CUDA in LayerNorm gradient computation
dlib/cuda/tensor_tools.cpp | 4 ++++ 1 file changed, 4 insertions(+)
Update dot visitor
dlib/dnn/visitors.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)
fix smelu_gradient name
dlib/cuda/cpu_dlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Add SmeLU activation
dlib/cuda/cpu_dlib.cpp | 55 +++++++++++++++++++++++++++++++ dlib/cuda/cpu_dlib.h | 15 +++++++++ dlib/cuda/cuda_dlib.cu | 75 ++++++++++++++++++++++++++++++++++++++++++- dlib/cuda/cuda_dlib.h | 15 +++++++++ dlib/cuda/tensor_tools.cpp | 30 +++++++++++++++++ dlib/cuda/tensor_tools.h | 43 +++++++++++++++++++++++++ dlib/dnn/layers.h | 80 ++++++++++++++++++++++++++++++++++++++++++++++ dlib/dnn/layers_abstract.h | 53 ++++++++++++++++++++++++++++++ dlib/test/dnn.cpp | 49 +++++++++++++++++++++++----- 9 files changed, 406 insertions(+), 9 deletions(-)
Fix documentation
dlib/dir_nav/dir_nav_extensions_abstract.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Add directory_exists
dlib/dir_nav/dir_nav_extensions.cpp | 22 ++++++++++++++++++---- dlib/dir_nav/dir_nav_extensions.h | 6 ++++++ dlib/dir_nav/dir_nav_extensions_abstract.h | 13 +++++++++++++ 3 files changed, 37 insertions(+), 4 deletions(-)
Fix focal loss
dlib/dnn/loss.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Make Clang compile cpp11_test.cpp without warnings
dlib/cmake_utils/test_for_cpp11/cpp11_test.cpp | 2 ++ 1 file changed, 2 insertions(+)
Print reason for failing to compile cpp11_test
dlib/cmake_utils/use_cpp_11.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Make compiler options work with clang-cl
dlib/cmake_utils/set_compiler_specific_options.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Increase template-depth for Clang only when needed
dlib/cmake_utils/set_compiler_specific_options.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Only print Visual Studio messages when compiling with MSVC
dlib/cmake_utils/set_compiler_specific_options.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Fix deserialize logic in loss_multibinary_log (#2547)
dlib/dnn/loss.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-)
Add focal gamma to loss_multibinary_log (#2546)
dlib/dnn/loss.h | 37 +++++++++++++++++++++++++++---------- dlib/dnn/loss_abstract.h | 31 +++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 10 deletions(-)
Add missing vistor implementations to visitors.h (#2539)
dlib/dnn/layers.h | 130 ------------------------- dlib/dnn/visitors.h | 269 +++++++++++++++++++++++++++++++--------------------- 2 files changed, 163 insertions(+), 236 deletions(-)
Refactor visitors into their own header (#2533)
dlib/cuda/cpu_dlib.h | 2 +- dlib/cuda/cuda_dlib.h | 2 +- dlib/dnn/layers.h | 94 ---------- dlib/dnn/layers_abstract.h | 34 ---- dlib/dnn/loss.h | 1 - dlib/dnn/misc.h | 71 -------- dlib/dnn/utilities.h | 315 ++++----------------------------- dlib/dnn/utilities_abstract.h | 132 -------------- dlib/dnn/visitors.h | 402 ++++++++++++++++++++++++++++++++++++++++++ dlib/dnn/visitors_abstract.h | 164 +++++++++++++++++ 10 files changed, 603 insertions(+), 614 deletions(-)
Fix formatting in YOLO deserialize error message (#2535)
dlib/dnn/loss.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Add visitor to draw nets in the DOT language (#2528)
dlib/dnn.h | 1 + dlib/dnn/visitors.h | 518 +++++++++++++++++++++++++++++++++++++++++++ dlib/dnn/visitors_abstract.h | 46 ++++ 3 files changed, 565 insertions(+)
Problem: `Error while calling cudnnGetConvolutionForwardWorkspaceSize( context(), descriptor(data), (const cudnnFilterDescriptor_t)filter_handle, (const cudnnConvolutionDescriptor_t)conv_handle, descriptor(dest_desc), (cudnnConvolutionFwdAlgo_t)forward_algo, &forward_workspace_size_in_bytes) in file C:\a\2\s\3rdparty\dlib\dlib\cuda\cudnn_dlibapi.cpp:1029. code: 9, reason: CUDNN_STATUS_NOT_SUPPORTED` (#2532)
dlib/cuda/cudnn_dlibapi.cpp | 83 +++++++++++++++++++++++++++------------------ dlib/cuda/cudnn_dlibapi.h | 7 +++- 2 files changed, 56 insertions(+), 34 deletions(-)
remove cruft
dlib/svm/svm_c_trainer.h | 3 --- dlib/svm/svm_nu_trainer.h | 3 --- 2 files changed, 6 deletions(-)
Find Threads target if necessary (#2522) (#2526)
dlib/cmake_utils/dlibConfig.cmake.in | 10 ++++++++++ 1 file changed, 10 insertions(+)
update cmake docs
dlib/cmake_utils/dlibConfig.cmake.in | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
Problem: Error while calling cudnnGetConvolutionBackwardFilterWorkspaceSize( context(), descriptor(data), descriptor(dest_desc), (const cudnnConvolutionDescriptor_t)conv_handle, (const cudnnFilterDescriptor_t)filter_handle, (cudnnConvolutionBwdFilterAlgo_t)backward_filters_algo, &backward_filters_workspace_size_in_bytes) in file C:\a\1\s\3rdparty\dlib\dlib\cuda\cudnn_dlibapi.cpp:1048. code: 9, reason: CUDNN_STATUS_NOT_SUPPORTED (#2527)
dlib/cuda/cudnn_dlibapi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Speed up Barlow Twins loss (#2519)
dlib/dnn/loss.h | 51 ++++++++++++++++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 19 deletions(-)
Fix Barlow Twins loss gradient (#2518)
dlib/dnn/loss.h | 4 ++-- examples/dnn_self_supervised_learning_ex.cpp | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-)
fix race condition in sockets unit test
dlib/test/sockets.cpp | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-)
Adjust debugging message from sockets test
dlib/test/sockets.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Add debugging message to see why the socket tests sometimes fail on windows in github actions
dlib/test/sockets.cpp | 1 + 1 file changed, 1 insertion(+)
Update __init__.py.in (#2515)
tools/python/dlib/__init__.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Add get_random_beta to dlib::rand (#2499)
dlib/rand/rand_kernel_1.h | 19 ++++++++++++++++++- dlib/rand/rand_kernel_abstract.h | 15 ++++++++++++++- dlib/test/rand.cpp | 33 +++++++++++++++++++++++++++------ 3 files changed, 59 insertions(+), 8 deletions(-)
Do not use deprecated `std::random_shuffle` (#2507)
dlib/test/statistics.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
See if this makes the MPC test more reliable on MacOS
dlib/test/mpc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Avoid build error in visual studio
dlib/test/rand.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
Add more unit tests for dlib::rand
dlib/test/rand.cpp | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+)
Relax MPC test for macOS (#2500)
dlib/test/mpc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Make -q on tests print errors
dlib/test/main.cpp | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-)
Add Reorg Layer (#2496)
dlib/cuda/cpu_dlib.cpp | 78 ++++++++++++++++++++++++++++++++++ dlib/cuda/cpu_dlib.h | 16 +++++++ dlib/cuda/cuda_dlib.cu | 86 ++++++++++++++++++++++++++++++++++++++ dlib/cuda/cuda_dlib.h | 16 +++++++ dlib/cuda/tensor_tools.cpp | 31 +++++++++++++- dlib/cuda/tensor_tools.h | 53 ++++++++++++++++++++++++ dlib/dnn/core.h | 4 +- dlib/dnn/layers.h | 101 +++++++++++++++++++++++++++++++++++++++++++++ dlib/dnn/layers_abstract.h | 53 ++++++++++++++++++++++++ dlib/test/dnn.cpp | 27 ++++++++++++ 10 files changed, 462 insertions(+), 3 deletions(-)
do not round drectangle in rectangle transform (#2498)
dlib/geometry/point_transforms.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Resolve davisking/dlib#2463 (#2492)
dlib/external/pybind11/include/pybind11/numpy.h | 4 ++++ 1 file changed, 4 insertions(+)
Record last changeset and set PATCH version to 99
dlib/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Created release v19.23
dlib/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)