1. 27 Apr, 2020 1 commit
  2. 22 Apr, 2020 1 commit
  3. 19 Apr, 2020 1 commit
  4. 18 Apr, 2020 3 commits
    • Davis King's avatar
      Reduce code duplication a bit and make equal_error_rate() give correct results... · a2e45f00
      Davis King authored
      Reduce code duplication a bit and make equal_error_rate() give correct results when called on data where all detection scores are identical.
      
      Previously it would say the EER was 0, but really it should have said 1 in this case.
      a2e45f00
    • Davis King's avatar
      A little bit of cleanup · 0e923cff
      Davis King authored
      0e923cff
    • Adrià Arrufat's avatar
      Add cuda implementation for loss_mean_squared_per_channel_and_pixel (#2053) · 55e9c890
      Adrià Arrufat authored
      
      
      * wip: attempt to use cuda for loss mse channel
      
      * wip: maybe this is a step in the right direction
      
      * Try to fix dereferencing the truth data (#1)
      
      * Try to fix dereferencing the truth data
      
      * Fix memory layout
      
      * fix loss scaling and update tests
      
      * rename temp1 to temp
      
      * readd lambda captures for output_width and output_height
      
      clangd was complaining about this, and suggested me to remove them
      in the first, place:
      
      ```
      Lambda capture 'output_height' is not required to be captured for this use (fix available)
      Lambda capture 'output_width' is not required to be captured for this use (fix available)
      ```
      
      * add a weighted_loss typedef to loss_multiclass_log_weighted_ for consistency
      
      * update docs for weighted losses
      
      * refactor multi channel loss and add cpu-cuda tests
      
      * make operator() const
      
      * make error relative to the loss value
      Co-authored-by: default avatarJuha Reunanen <juha.reunanen@tomaattinen.com>
      55e9c890
  5. 14 Apr, 2020 1 commit
  6. 04 Apr, 2020 1 commit
  7. 03 Apr, 2020 1 commit
  8. 02 Apr, 2020 1 commit
  9. 31 Mar, 2020 4 commits
  10. 29 Mar, 2020 4 commits
    • Davis King's avatar
      Promote some of the sub-network methods into the add_loss_layer interface so... · 0057461a
      Davis King authored
      Promote some of the sub-network methods into the add_loss_layer interface so users don't have to write .subnet() so often.
      0057461a
    • Davis King's avatar
      c79f64f5
    • Davis King's avatar
      fd014534
    • Adrià Arrufat's avatar
      Add DCGAN example (#2035) · f42f100d
      Adrià Arrufat authored
      * wip: dcgan-example
      
      * wip: dcgan-example
      
      * update example to use leaky_relu and remove bias from net
      
      * wip
      
      * it works!
      
      * add more comments
      
      * add visualization code
      
      * add example documentation
      
      * rename example
      
      * fix comment
      
      * better comment format
      
      * fix the noise generator seed
      
      * add message to hit enter for image generation
      
      * fix srand, too
      
      * add std::vector overload to update_parameters
      
      * improve training stability
      
      * better naming of variables
      
      make sure it is clear we update the generator with the discriminator's
      gradient using fake samples and true labels
      
      * fix comment: generator -> discriminator
      
      * update leaky_relu docs to match the relu ones
      
      * replace not with !
      
      * add Davis' suggestions to make training more stable
      
      * use tensor instead of resizable_tensor
      
      * do not use dnn_trainer for discriminator
      f42f100d
  11. 21 Mar, 2020 1 commit
    • Adrià Arrufat's avatar
      add leaky_relu activation layer (#2033) · d610e56c
      Adrià Arrufat authored
      * add leaky_relu activation layer
      
      * add inplace case for leaky_relu and test_layer
      
      * make clear that alpha is not learned by leaky_relu
      
      * remove branch from cuda kernel
      d610e56c
  12. 19 Mar, 2020 2 commits
    • Juha Reunanen's avatar
      To avoid a GPU memory leak, allow passing thread pools to dnn_trainer from outside (#2027) · 74123841
      Juha Reunanen authored
      * Problem: The CUDA runtime allocates resources for each thread, and apparently those resources are not freed when the corresponding threads terminate. Therefore, each instantiation of dnn_trainer leaks a bit of GPU memory.
      
      Solution: Add possibility to pass thread pools from outside. This way, subsequent dnn_trainer instances can use the same threads, and there's no memory leak.
      
      * Add helpful comments
      74123841
    • scott-vsi's avatar
      link against openblasp (#2028) · 6fc503d2
      scott-vsi authored
      openblasp is a parallel implementation of openblas with pthreads found on Centos/Fedora
      6fc503d2
  13. 18 Mar, 2020 1 commit
    • Adrià Arrufat's avatar
      add loss multiclass log weighted (#2022) · 1380e6b9
      Adrià Arrufat authored
      * add loss_multiclass_log_weighted
      
      * fix class name in loss_abstract
      
      * add loss_multiclass_log_weighted test
      
      * rename test function to match class name
      
      * fix typo
      
      * reuse the weighted label struct across weighted losses
      
      * do not break compatibility with loss_multiclass_log_per_pixel_weighted
      
      * actually test the loss and fix docs
      
      * fix build with gcc 9
      1380e6b9
  14. 14 Mar, 2020 1 commit
  15. 13 Mar, 2020 1 commit
  16. 12 Mar, 2020 1 commit
  17. 11 Mar, 2020 2 commits
  18. 10 Mar, 2020 1 commit
  19. 29 Feb, 2020 3 commits
  20. 07 Feb, 2020 2 commits
  21. 31 Jan, 2020 2 commits
  22. 29 Jan, 2020 4 commits
  23. 27 Jan, 2020 1 commit