1. 14 Apr, 2021 1 commit
  2. 13 Apr, 2021 1 commit
  3. 12 Apr, 2021 1 commit
    • Adrià Arrufat's avatar
      Add Clipped ReLU and ELU activations (#2285) · 1b7c7a64
      Adrià Arrufat authored
      
      
      * wip: add apis for clipped_relu and elu, and layer implementation for clipped_relu
      
      * add tensor_tools documentation
      
      * add cpu implementations for new activations
      
      * add elu layer
      
      * use upperbound and lowerbound for clipped_relu
      
      * fix clipped_relu gradient due to wrong variable naming
      
      * fix elu_gradient due to wrong variable naming
      
      * fix elu_gradient documentation
      
      * add documentation
      
      * WIP: add test_layer cases for clipped_relu and elu
      
      For some reason that I can't see, ELU is failing...
      
      * add clipped_relu and elu tests... cuda elu layer still does not work
      
      * fix spacing
      
      * add custom cuda implementation for elu_gradient (this one works)
      
      * Revert "add custom cuda implementation for elu_gradient (this one works)"
      
      This reverts commit 446dd803964cc6ecca598ddf6688e5d89ca0b112.
      
      * Revert "Revert "add custom cuda implementation for elu_gradient (this one works)""
      
      This reverts commit 0b615f50081d0d90e71d502b6767fcb6ba62f28a.
      
      * add comment about custom elu gradient implementation
      
      * add gradient tests, restore cudnn elu gradient
      
      * re add custom elu gradient implementation
      
      * update docs
      
      * use own cuda implementation for clipped_relu and elu
      Co-authored-by: default avatarDavis E. King <davis@dlib.net>
      1b7c7a64
  4. 04 Apr, 2021 2 commits
    • Adrià Arrufat's avatar
      Fix input/output mappings with repeat layers (#2337) · 0ffe9c4c
      Adrià Arrufat authored
      * Fix input/output mappings with repeat layers
      
      * add test for input/output tensor mappers
      
      * fix output to input order
      0ffe9c4c
    • Adrià Arrufat's avatar
      Add letterbox image (#2335) · a4713b59
      Adrià Arrufat authored
      * Add letterbox image
      
      * use && instead of and
      
      * make function adhere to the generic image interface
      
      * avoid extra copy
      
      * add some overloads and a simple test
      
      * add documentation
      
      * use zero_border_pixels and remove superfluous temporary image
      
      * allow different input and out images and update docs
      
      * remove empty line
      
      * be more explicit about output image size
      a4713b59
  5. 28 Mar, 2021 3 commits
  6. 22 Mar, 2021 1 commit
  7. 08 Mar, 2021 1 commit
    • Adrià Arrufat's avatar
      Add softmax function for matrix type (#2320) · 092fa303
      Adrià Arrufat authored
      * Add softmax function for matrix type
      
      * make softmax inherit from basic_op_m
      
      * fix comment
      
      * add test for matrix softmax
      
      * remove include
      
      * take inspiration from op_normalize
      
      * use multiplication instead of division
      
      * fix typo in documentation
      092fa303
  8. 20 Feb, 2021 1 commit
  9. 17 Feb, 2021 1 commit
  10. 16 Feb, 2021 1 commit
    • Davis King's avatar
      Add cmake back as a pip dependency. · 8b9d0439
      Davis King authored
      This dependency was explicitly removed two years ago because pip was
      installing a broken cmake on some systems.  I'm adding the dependency
      back in the hope that the pip copy of cmake has been fixed on all
      systems by this point.
      8b9d0439
  11. 13 Feb, 2021 1 commit
  12. 12 Feb, 2021 1 commit
    • pfeatherstone's avatar
      Serialization to and from vector<int8_t> and vector<uint8_t> (#2301) · 479b69e6
      pfeatherstone authored
      
      
      * [SERIALIZATION]	- vectorstream can now be used with vector<int8_t> and vector<uint8_t>
      
      * [SERIALIZATION]	- update proxy_serialize and proxy_deserialize to work with vector<int8_t> and vector<uint8_t>
      
      * [SERIALIZATION]	- updated vectorstream tests
      
      * [SERIALIZATION]	- updated serialize tests. check you can go to and from any of vector<char>, vector<int8_t> and vector<uint8_t>
      
      * [SERIALIZATION]	- updated matrix tests. check you can go to and from any of vector<char>, vector<int8_t> and vector<uint8_t>
      
      * [SERIALIZATION]	- updated dnn tests. check you can go to and from any of vector<char>, vector<int8_t> and vector<uint8_t>
      
      * [SERIALIZATION] improved and possibly safer
      
      * [SERIALIZATION] use placement new. best of all worlds i think. we have least object overhead. but code looks a tad uglier. oh well, user doesn't have to care
      
      * [SERIALIZATION] i hope this is easier on the eyes.
      Co-authored-by: default avatarpf <pf@pf-ubuntu-dev>
      479b69e6
  13. 11 Feb, 2021 1 commit
  14. 09 Feb, 2021 1 commit
  15. 28 Jan, 2021 1 commit
  16. 18 Jan, 2021 2 commits
  17. 17 Jan, 2021 3 commits
  18. 16 Jan, 2021 4 commits
  19. 15 Jan, 2021 1 commit
  20. 13 Jan, 2021 1 commit
  21. 06 Jan, 2021 2 commits
  22. 03 Jan, 2021 1 commit
  23. 30 Dec, 2020 1 commit
    • Adrià Arrufat's avatar
      Draw string on images (#2270) · 187b73f7
      Adrià Arrufat authored
      * add function to draw string on images
      
      * add documentation
      
      * formatting
      
      * add semicolon
      
      * add test for draw_string on images
      187b73f7
  24. 28 Dec, 2020 1 commit
  25. 19 Dec, 2020 1 commit
  26. 17 Dec, 2020 1 commit
  27. 14 Dec, 2020 1 commit
  28. 13 Dec, 2020 1 commit
  29. 09 Dec, 2020 1 commit
  30. 07 Dec, 2020 1 commit