Commit Graph

8029 Commits

Author SHA1 Message Date
Adrià Arrufat
a990307066 match test types to prevent Windows from failing tests 2022-02-04 09:07:54 +09:00
Adrià Arrufat
35f55a96e9 remove unneeded include 2022-02-04 09:05:57 +09:00
Adrià Arrufat
f3871da871 Merge branch 'master' into add-get-random-beta 2022-02-03 22:56:47 +09:00
Davis King
fda984f7ca Add more unit tests for dlib::rand 2022-02-03 08:45:15 -05:00
Adrià Arrufat
fc7595d081
Relax MPC test for macOS (#2500) 2022-02-03 08:28:20 -05:00
Davis King
86b3a809fe Make github actions use -q so the test logs are not so spammy 2022-02-03 08:26:50 -05:00
Davis King
28328af541 Make -q on tests print errors 2022-02-03 08:25:58 -05:00
Adrià Arrufat
590520d5e7 fix condition and use full names for shape parameters 2022-02-03 17:57:25 +09:00
Adrià Arrufat
5091687f29 add tests 2022-02-03 16:28:13 +09:00
Adrià Arrufat
6258166947 simplify beta distribution generation 2022-02-03 13:22:51 +09:00
Adrià Arrufat
d022ef731f
Merge branch 'davisking:master' into add-get-random-beta 2022-02-03 12:49:53 +09:00
Adrià Arrufat
ffca3b3a6d
Add Reorg Layer (#2496)
* Add Reorg Layer

* Add Reorg Layer

* Fix typo

* fix grammar

* add missing input <-> output mappings to reorg

* Add reorg docs and term index entry

* Update dlib/cuda/tensor_tools.h

Co-authored-by: Davis E. King <davis@dlib.net>
2022-02-02 22:29:01 -05:00
Adrià Arrufat
c91959a73d
do not round drectangle in rectangle transform (#2498) 2022-02-02 22:16:04 -05:00
Adrià Arrufat
027fb781bd
GitHub actions (#2289)
* add github actions from "ptheywood/cuda-cmake-github-actions"

* fix typo

* rename

* Revert "rename"

This reverts commit ded445f3bb.

* add cudnn env variable

* remove old cuda configs and try to fix installation

* add run tests

* fix test path

* actually build tests

* fix missing $

* fix syntax

* debug test path

* fix test build dir

* fix cmake syntax

* fix working directory

* Revert "debug test path"

This reverts commit 6d5b4e7a1f.

* uncomment other configurations

* fix run test path

* fix test run dir again

* syntax

* it's really not my day...

* remove incompatible configs and make tests run silently

* add initial windows script from ptheywood/cuda-cmake-github-actions

* fix windows script path

* add test for windows

* remove dot slash

* install cublas_dev

* try adding cudnn (I really need a Windows machine to test this)

* remove windows workflow scripts

* try config with ubuntu 20.10

* fix syntax error

* try to fix DLIB not using CUDA

* try again with ubuntu 20.04

* remove backticks

* remove superfluous configure step

* fix cuda parsing for v10.2

* debug test

* change working dir...

* do not run test silently

* install nvidia drivers

* only install server drivers

* load nvidia kernel module

* move module loading to script

* try to fix kernel module loading

* add simple github actions workflow

* add simple github actions workflow

* fix path?

* fix config step

* only build the dtest target

* handle Windows path

* use ./ on windows

* debugging

* debugging

* debugging

* except for the timer test on macOS, the rest works

* remove cuda custom tests, for the moment

* build in Relase mode to try to avoid timeout on Windows

* debugging

* actually change build config

* do not test the timer on macOS

* try building python
2022-02-02 22:00:56 -05:00
Adrià Arrufat
28e1411770 Add get_random_beta 2022-02-03 11:48:45 +09:00
Adrià Arrufat
3d4c14e633
Add input_rgb_image_pair layer and new net visitors documentation (#2497)
* Add input_rgb_image layer documentation

* fix typo

* Add index entries for missing network visitors

* update Barlow Twins loss links

* add missing yolo rect docs, links to yolo paper and better Barlow Twins formatting
2022-02-02 08:36:48 -05:00
Adrià Arrufat
21651f498e
Add missing docs for v19.23 (#2495)
* Add missing docs for v19.23

* remove duplicate yolo entry

* fix link of loss_yolo_ in term_index
2022-01-30 13:17:40 -05:00
Rajas Sambhare
2b86255404
Resolve davisking/dlib#2463 (#2492)
* Resolve davisking/dlib#2463

Fixes missing ssize_t definition on Windows

* Define ssize_t only on Windows 64-bit
2022-01-28 07:55:00 -05:00
Davis King
54af1f85f8 Record last changeset and set PATCH version to 99 2022-01-24 22:16:28 -05:00
Davis King
074ab8bdba Created release v19.23 2022-01-24 22:10:27 -05:00
Davis King
0cba4bacb3 updated docs 2022-01-24 22:09:45 -05:00
Davis King
acf1b9c479 Rename INVOKE to invoke_ 2022-01-24 22:05:59 -05:00
Davis King
56b8cd5cbc Make struct some_type; get bolded when pretty printed 2022-01-24 22:01:47 -05:00
Davis King
8810a62b11 fix spelling error in comment 2022-01-24 21:55:44 -05:00
Davis King
c1b3feb23b very minor formatting fixup 2022-01-24 21:49:09 -05:00
Davis King
02b290e3fb update release notes 2022-01-24 08:35:47 -05:00
Davis King
3c654a7a9e cleanup formatting a little 2022-01-24 08:35:34 -05:00
Adrià Arrufat
2ed6ae1b6c
Eliminate grid sensitivity in YOLO (#2488) 2022-01-23 11:36:45 -05:00
Adrià Arrufat
3da3e81181
Fix Layer Normalize (#2489)
* Fix Layer Normalize

* remove unneeded temporary variables
2022-01-23 11:29:28 -05:00
pfeatherstone
aaac87a224
[TYPE_SAFE_UNION] simplified some type traits and added for_each(). (#2475)
* [TYPE_SAFE_UNION] simplified some type traits and added for_each().

* added example serialization/deserialization using typeid().hash_code and different type_safe_union types

* in_place_tag is an empty struct. so don't pass const references, you're unecessarily passing 8 bytes around for now reason

* - added variant_size for type_safe_union
- added variant_alternative for type_safe_union
- removed for type_safe_union::for_each() and replaced with global function dlib::for_each_type()

* - made visit() a global

* use dlib::invoke explicitly

* - for_each_type is implemented using fold expression (or whatever the right term is) instead of template recursion. This method, in theory, yields better compile times. And if you're familiar with parameter packs, then the implementation is easier to read.

* - refactoring
- reordered function parameters in for_each_type()
- vtable implementation of apply_to_contents and visit() (sorry Davis for yet another change)

* add option to not zero out gradients and method to do it (#2477)

* Avoid different kinds of compiler warnings (#2481)

* Avoid different kinds of compiler warnings that started to appear when upgrading my build environment

* Avoid more compiler warnings

* Revert the overly verbose static_cast changes

* Make resize_bilinear and resize_bilinear_gradient take long long (previously just long)

* Circumvent what appears to be a bug in Visual Studio 2019's optimizer
(see: https://forum.juce.com/t/warning-in-the-lastest-vs2019/38267)

* Fix MSVC pragma warnings with other compilers (#2483)

* Fix warning about unused zero_gradients parameter (#2487)

* Fix warning about unused zero_gradients parameter

* match signature of other methods

* cleanup

Co-authored-by: pfeatherstone <peter@me>
Co-authored-by: Adrià Arrufat <1671644+arrufat@users.noreply.github.com>
Co-authored-by: Juha Reunanen <juha.reunanen@tomaattinen.com>
Co-authored-by: Davis King <davis@dlib.net>
2022-01-23 11:26:15 -05:00
Adrià Arrufat
42e0869606
Fix warning about unused zero_gradients parameter (#2487)
* Fix warning about unused zero_gradients parameter

* match signature of other methods
2022-01-15 09:22:43 -05:00
Adrià Arrufat
8b4652912d
Fix MSVC pragma warnings with other compilers (#2483) 2022-01-10 06:02:20 -05:00
Juha Reunanen
a6f29d41ad
Avoid different kinds of compiler warnings (#2481)
* Avoid different kinds of compiler warnings that started to appear when upgrading my build environment

* Avoid more compiler warnings

* Revert the overly verbose static_cast changes

* Make resize_bilinear and resize_bilinear_gradient take long long (previously just long)

* Circumvent what appears to be a bug in Visual Studio 2019's optimizer
(see: https://forum.juce.com/t/warning-in-the-lastest-vs2019/38267)
2022-01-06 09:03:48 -05:00
Adrià Arrufat
994df341a2
add option to not zero out gradients and method to do it (#2477) 2022-01-05 08:46:55 -05:00
Davis King
a54cea44ae added a comment 2021-12-16 08:16:59 -05:00
Juha Reunanen
75b3463fa7
Avoid distracting compiler warning (#2472) 2021-12-16 08:13:08 -05:00
Adrià Arrufat
f0c0b307d5
Fix crash when truth center is outside of the image (#2471) 2021-12-07 21:49:06 -05:00
Adrià Arrufat
a2c4760307
Use lambda obj in the ignore case and do some refactoring (#2466) 2021-11-25 10:37:13 -05:00
aribiere
cf21f5aa95
Add semicolon as separator for reading in a matrix (#2462)
Co-authored-by: Alain RIBIÈRE <alain.ribiere@edf.fr>
2021-11-19 08:38:03 -05:00
Adrià Arrufat
e1ac0b43e4
normalize samples for SVM classifier (#2460) 2021-11-17 08:14:39 -05:00
Davis King
44621a6124 fix build error 2021-11-14 21:28:00 -05:00
pfeatherstone
1925b2d10f
[INVOKE] added is_invocable_r, invoke_r, made everything constexpr and conditionally noexcept (#2458)
* - added dlib::invoke_r()
- added dlib::is_invocable_r<>
- made everything constexpr and conditionally noexcept !
- added tests
This has required a refactor of dlib::invoke since std::mem_fn is not constexpr in c++11

* - !std::is_function replaced with std::is_object. Let's be a bit more precise

* - made dlib::apply constexpr and conditionally noexcept

Co-authored-by: pf <pf@me>
2021-11-14 16:18:06 -05:00
Davis King
7c8ca22580 minor cleanup 2021-11-14 14:09:57 -05:00
Davis King
a77b361f89 Make test python builds nice 2021-11-14 14:05:47 -05:00
Addam Dominec
569de81464
expose momentum_filter to Python (#2457) 2021-11-14 13:34:00 -05:00
Adrià Arrufat
5091e9c880
Replace sgd-based fc classifier with svm_multiclass_linear_trainer (#2452)
* Replace fc classifier with svm_multiclass_linear_trainer

* Mention about find_max_global()

Co-authored-by: Davis E. King <davis@dlib.net>

* Use double instead of float for extracted features

Co-authored-by: Davis E. King <davis@dlib.net>

* fix compilation with double features

* Revert "fix compilation with double features"

This reverts commit 76ebab4b91.

* Revert "Use double instead of float for extracted features"

This reverts commit 9a50809ebf.

* Find best C using global optimization

Co-authored-by: Davis E. King <davis@dlib.net>
2021-11-06 18:33:31 -04:00
pfeatherstone
f77189db03
[INVOKE] C++11 backport of std::invoke, std::invoke_result, std:apply and std::make_from_tuple (#2450)
* added backport of std::invoke, std::invoke_result and std::apply

* added backport of std::invoke, std::invoke_result and std::apply

* msvc doesn't like keyword 'not'

* i think this fixes detection of invoke on MSVC

* ok, i think detection of invoke stuff is fixed on windows

* - just have dlib's own implementation and don't use standard library even if c++17 is enabled.
- added tests for dlib::invoke_result_t

* added docs

* - added dlib::make_from_tuple
- added tests + docs

* - make sure you use the dlib:: namespace. Otherwise, when compiling with C++17, compiler might get confused
- use remove_reference instead of decay. That's what the standard says to use

* added dlib::is_invocable

* - defined invoke_traits. This removes dupplicate code.
- This makes absolutely no difference but is just a tiny bit nicer.

* removed the test that could potentially fail with MSVC

Co-authored-by: pfeatherstone <peter@me>
2021-11-06 15:54:01 -04:00
Adrià Arrufat
7f6746e7cd
Fix nvidia pragma warning (#2454) 2021-11-02 18:50:18 -04:00
Adrià Arrufat
709b66677c
Avoid redundant computations in the YOLO loss (#2453) 2021-11-02 08:00:51 -04:00
Davis King
a41b3d7ce8 We have some excessive and duplicative tests in the travis-ci setup.
This is causing us to run out of travis-ci credits, making tests not run
at all.  I deleted the duplicative tests and then disabled two additonal
ones by commenting them out that would be nice to run but I think are
not essential.  In particular, the OSX one eats up a ton of credits.  So
I disabled that.  Maybe we can turn it back on later if we end up well
under the credit budget (or switch to github actions which appears to
have higher limits)
2021-10-30 09:47:42 -04:00