Commit Graph

8199 Commits

Author SHA1 Message Date
pfeatherstone 6dfba4970d
Bug fix for fftr on matrix expression. Clearly nobody is doing FFTs with dlib as this bug has been lingering for a couple years now (#2626)
Co-authored-by: pf <pf@me>
2022-07-18 21:50:45 -04:00
Adrià Arrufat ad06471a15
Fix typo in the self-supervised learning example (#2623) 2022-07-13 18:54:10 -04:00
Davis King 270b96c7d1 oops, add missing deps for some python tests 2022-07-12 21:18:04 -04:00
Davis King 71d95d76d9 more tweaks cleanup and fixes for ci builds 2022-07-12 20:40:11 -04:00
Davis King c458c4f202 update how python tests are run on ubuntu and mac 2022-07-12 20:24:24 -04:00
Davis King 135e6ef06a try to fix windows ci testing 2022-07-12 20:07:50 -04:00
Davis King a517aaa0bb remove broken python tests 2022-07-12 19:51:19 -04:00
Davis King febac3adb2 Try to fix windows python tests 2022-07-12 19:35:07 -04:00
Davis King 20add2c88e removing travis configs since we haven't used travis in months 2022-07-12 19:01:46 -04:00
Adrià Arrufat 1066be80fd
Update libjpeg to version 9e (#2619)
* Update libjpeg to version 9e

Fixes #2618

* Comment out #define __inline__, which breaks Visual Studio
2022-07-11 08:28:06 -04:00
Adrià Arrufat 550a5744de
Use chrono in console progress indicator and add finish method (#2617)
* Use chrono in console progress indicator and add finish method

* Default print status to std::clog

* Print ellapsed time in parallel_for_verbose

* Fix typo

* Fix typo again

* Update release notes

* Fix spacing
2022-07-06 20:05:22 -04:00
pfeatherstone 3c73978de8
type_safe_union : visit() and apply_to_contents() performance improvements (#2615) 2022-07-02 20:43:00 -04:00
pfeatherstone 7c32e1c18e
fix spelling (#2614) 2022-06-28 06:55:34 -04:00
pfeatherstone ec9a143e07
noexcept dlib::type_safe_union::swap() (#2604)
* [TYPE_SAFE_UNION] removed explicit swap(). let the compiler define swap from move semantics

* - added type traits:
    are_nothrow_move_construtible
    are_nothrow_move_assignable
    are_nothrow_copy_construtible
    are_nothrow_copy_assignable
- everything has (conditional) noexcept specifiers

* - formatting
- bug fix

* - added .swap() back in

* - type traits
- added .swap(item) and swap(a,b) back in, but with some cleanup and all the noexcept

* added docs for swap(a,b) back in

Co-authored-by: pfeatherstone <peter@me>
2022-06-27 08:05:50 -04:00
Crayon 6c24e65f86
Fix typos (#2606) 2022-06-17 22:19:11 -04:00
Adrià Arrufat 7f46535cce
Fix potential memory leak when writing WebP throws (#2600) 2022-06-14 07:59:38 -04:00
Davis King 0f1d8e964f Fix assert having wrong condition 2022-06-06 22:01:59 -04:00
Adrià Arrufat 1de7924694
Fix saving grayscale WebP images (#2591) 2022-05-29 10:53:01 -04:00
Davis King c9a25fda0a update docs 2022-05-08 10:53:24 -04:00
Davis King 842931975e Record last changeset and set PATCH version to 99 2022-05-08 10:35:36 -04:00
Davis King 6097093ab3 Created release v19.24 2022-05-08 10:30:31 -04:00
Davis King 76a9a10736 update docs 2022-05-08 10:28:58 -04:00
Davis King aff6bc4402 make sphinx doc building work on newer versions of ubuntu 2022-05-08 10:08:55 -04:00
Adrià Arrufat 06b826540c
Add SiLU activation layer (#2584) 2022-05-08 09:28:47 -04:00
Davis King 8af4226057 Revert "Add a test on github actions that builds on windows in debug mode"
This reverts commit 7009080014.
2022-04-29 22:51:01 -04:00
Davis King 7009080014 Add a test on github actions that builds on windows in debug mode 2022-04-29 22:04:37 -04:00
Adrià Arrufat 9db84f4c24
Build ancillary tools on Windows (#2583)
* Build ancillary tools on Windows

* Fix dtoc name
2022-04-29 21:49:57 -04:00
Davis E. King 4d92c302c0
Remove this test on windows for now since it runs out of ram 2022-04-29 09:43:50 -04:00
Davis King 2bcb1c4436 See if using only one thread to build prevents running out of ram on github actions when building windows examples 2022-04-29 08:39:53 -04:00
Adrià Arrufat 8ceb91fb44
Do not build WebP features if WebP is not available (#2582) 2022-04-29 08:38:21 -04:00
Davis King e264c26641 Build examples and other ancillary tools on windows too 2022-04-29 07:45:51 -04:00
Adrià Arrufat a7ae55b785
Add WebP support to imglab (#2580)
* Add WebP support to imglab

* Change order in if/else statements for image saving
2022-04-28 20:06:33 -04:00
Juha Reunanen df8b1380ab
Add GitHub Actions badges (#2571) 2022-04-20 08:00:00 -04:00
Juha Reunanen ebc4d63d68
Workaround for #2506 (#2570)
* Do not put variants that can hold immutable types to vectors

* Enable build on gcc 11
2022-04-19 08:02:17 -04:00
Adrià Arrufat a76f205bf6
Add webp support (#2565)
* Add BGR(A) to pixel_traits

* add support for reading webp

* Apply Davis' suggestions and fix formatting

* Fix signed/unsigned warning

* Update decoding paths

* update pixel traits documentation

* Add support for writing WebP images

* Simplify image_saver code

* WIP: add tests, PSNR is low but images look good

* Add lossless compression for quality > 100

* Fix build when WebP support is disabled

* Use C++ stream instead of C-style FILE

* Fix indentation

* Use reinterpret_cast instead of C-style cast

* Improve impl::impl_save_webp signature

* Remove empty line

* Use switch statement and clean up code

* Update Copyright and test libwebp on Linux

* Fix formatting in github workflow

* Fix operator== for bgr_alpha_pixel

* Show where the test fails

* Add libwebp to CI for the remaining Linux workflows

* Use filename consistently

* Improve message with wrong pixel type

* Fix tests for WebP images

* Prevent saving images which are too large and improve error messages

* Use max dimension from WebP header directly

* Update documentation, index and release notes

* Update dlib/image_saver/save_webp_abstract.h

Co-authored-by: Martin T. H. Sandsmark <martin.sandsmark@kde.org>
Co-authored-by: Davis E. King <davis685@gmail.com>
2022-04-19 07:52:12 -04:00
Juha Reunanen 0aa8b4cbfc
Treat warnings as errors (#2490) 2022-04-12 18:53:52 -04:00
Adrià Arrufat 49314c12d9 Use CUDA in LayerNorm gradient computation
I don't know how I could miss this.
2022-04-12 08:22:43 -04:00
Adrià Arrufat 3a267db577 Fix entry in term_index.html 2022-04-12 08:22:13 -04:00
Adrià Arrufat 45f742b82b Update docs 2022-04-12 08:22:13 -04:00
Adrià Arrufat e944ea4fcb Update dot visitor 2022-04-12 08:22:13 -04:00
Adrià Arrufat 18fe54b64a fix smelu_gradient name 2022-04-12 08:22:13 -04:00
Adrià Arrufat 8fa65eb7b2 Add SmeLU activation 2022-04-12 08:22:13 -04:00
Adrià Arrufat 66f9b2b5bc Fix documentation 2022-04-06 22:37:52 -04:00
Adrià Arrufat 23c74af872 Add directory_exists 2022-04-06 22:37:52 -04:00
Adrià Arrufat 9bb1b6f712 Fix focal loss
The loss value should reflect the impact of the gamma parameter, as well.
2022-03-30 19:38:56 -04:00
Øystein Myrmo 5cb036564c Make Clang compile cpp11_test.cpp without warnings
Warnings about unused variables are quenched by simply incrementing the
variables in question. This makes the try_compile() call in CMake
succeed without warnings when checking for C++11 compatibility and using
-Wall.
2022-03-23 08:44:27 -04:00
Øystein Myrmo e9d49fee8f Print reason for failing to compile cpp11_test 2022-03-23 08:44:27 -04:00
Øystein Myrmo 04d1180b02 Make compiler options work with clang-cl
When propagating the option "-Xclang -fcxx-exceptions" to targets
linking to dlib, the options with quotes are unknown to clang-cl.
Removing the quotes and splitting the arguments into two works fine.
2022-03-23 08:44:27 -04:00
Øystein Myrmo 04371157f7 Increase template-depth for Clang only when needed
Clang 7 increased the default template-depth to 1024.
2022-03-23 08:44:27 -04:00
Øystein Myrmo 4ebf3ef088 Only print Visual Studio messages when compiling with MSVC
When compiling with other compilers than MSVC, error messages about
C++11 support for versions below MSVC version 19.0.24210.0 were printed.
This happens, for example, when using clang-cl installed with the Visual
Studio Installer.
2022-03-23 08:44:27 -04:00