1. 04 Apr, 2021 1 commit
    • 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
  2. 28 Mar, 2021 3 commits
  3. 22 Mar, 2021 1 commit
  4. 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
  5. 20 Feb, 2021 1 commit
  6. 17 Feb, 2021 1 commit
  7. 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
  8. 13 Feb, 2021 1 commit
  9. 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
  10. 11 Feb, 2021 1 commit
  11. 09 Feb, 2021 1 commit
  12. 28 Jan, 2021 1 commit
  13. 18 Jan, 2021 2 commits
  14. 17 Jan, 2021 3 commits
  15. 16 Jan, 2021 4 commits
  16. 15 Jan, 2021 1 commit
  17. 13 Jan, 2021 1 commit
  18. 06 Jan, 2021 2 commits
  19. 03 Jan, 2021 1 commit
  20. 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
  21. 28 Dec, 2020 1 commit
  22. 19 Dec, 2020 1 commit
  23. 17 Dec, 2020 1 commit
  24. 14 Dec, 2020 1 commit
  25. 13 Dec, 2020 1 commit
  26. 09 Dec, 2020 1 commit
  27. 07 Dec, 2020 1 commit
  28. 04 Dec, 2020 2 commits
    • Davis King's avatar
      Some systems manage to install cuda in a way that causes cmake to claim · f42a6d23
      Davis King authored
      that cuda is available even though it knows it didn't find cublas, which
      is part of the standard cuda install.  So we need to add a check to see
      if cmake *really for realz* found cuda.
      f42a6d23
    • pfeatherstone's avatar
      Adding exponential and weibull distributions (#2247) · 0ff61299
      pfeatherstone authored
      
      
      * Added exponential distribution
      
      * tab problem removed?
      
      * forgot std::
      
      * Also added Weibull distribution. Very useful indeed.
      
      * Simple Weibull distribution unit test
      
      * don't forget std::
      
      * sorry, typo
      
      * [RAND] 	- seed the random number generators for consistency and no nasty surprises
      		- added parameter for tolerance
      		- added unit test for exponential distribution
      
      * [RAND] print the spinner more often
      
      * [RAND] up the tolerance for kurtosis a bit
      
      * [RAND] refactored parameters to reflect documentation on wikipedia.
      
      * [RAND] added documentation to _abstract
      
      * [RAND] i switched the order of the arguments to get_random_weibull and didn't update the unit tests. oops
      Co-authored-by: default avatarpf <pf@pf-ubuntu-dev>
      0ff61299
  29. 29 Nov, 2020 2 commits
    • Davis King's avatar
      minor cleanup · e58da513
      Davis King authored
      e58da513
    • Adrià Arrufat's avatar
      Add CIFAR-10 dataset loader (#2245) · d3b02131
      Adrià Arrufat authored
      * fix typos
      
      * add cifar-10
      
      * open files in binary mode
      
      * print messages with file name only, like mnist loader
      
      * some fixes
      
      * add mnist.cpp to CMakeLists.txt
      
      * fix test index
      
      * do not use iterator in cast
      
      * add cifar.cpp to all
      
      * Add Davis' suggestions
      
      * no need to use namespace std and clean up empty lines
      d3b02131