1. 27 Sep, 2022 1 commit
    • Kashif Rasul's avatar
      [Pytorch] Pytorch only schedulers (#534) · bd8df2da
      Kashif Rasul authored
      
      
      * pytorch only schedulers
      
      * fix style
      
      * remove match_shape
      
      * pytorch only ddpm
      
      * remove SchedulerMixin
      
      * remove numpy from karras_ve
      
      * fix types
      
      * remove numpy from lms_discrete
      
      * remove numpy from pndm
      
      * fix typo
      
      * remove mixin and numpy from sde_vp and ve
      
      * remove remaining tensor_format
      
      * fix style
      
      * sigmas has to be torch tensor
      
      * removed set_format in readme
      
      * remove set format from docs
      
      * remove set_format from pipelines
      
      * update tests
      
      * fix typo
      
      * continue to use mixin
      
      * fix imports
      
      * removed unsed imports
      
      * match shape instead of assuming image shapes
      
      * remove import typo
      
      * update call to add_noise
      
      * use math instead of numpy
      
      * fix t_index
      
      * removed commented out numpy tests
      
      * timesteps needs to be discrete
      
      * cast timesteps to int in flax scheduler too
      
      * fix device mismatch issue
      
      * small fix
      
      * Update src/diffusers/schedulers/scheduling_pndm.py
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      bd8df2da
  2. 22 Sep, 2022 1 commit
    • Jonathan Whitaker's avatar
      Adding pred_original_sample to SchedulerOutput for some samplers (#614) · 91db8189
      Jonathan Whitaker authored
      * Adding pred_original_sample to SchedulerOutput of DDPMScheduler, DDIMScheduler, LMSDiscreteScheduler, KarrasVeScheduler step methods so we can access the predicted denoised outputs
      
      * Gave DDPMScheduler, DDIMScheduler and LMSDiscreteScheduler their own output dataclasses so the default SchedulerOutput in scheduling_utils does not need pred_original_sample as an optional extra
      
      * Reordered library imports to follow standard
      
      * didnt get import order quite right apparently
      
      * Forgot to change name of LMSDiscreteSchedulerOutput
      
      * Aha, needed some extra libs for make style to fully work
      91db8189
  3. 21 Sep, 2022 1 commit
  4. 15 Sep, 2022 1 commit
    • Kashif Rasul's avatar
      Karras VE, DDIM and DDPM flax schedulers (#508) · b34be039
      Kashif Rasul authored
      * beta never changes removed from state
      
      * fix typos in docs
      
      * removed unused var
      
      * initial ddim flax scheduler
      
      * import
      
      * added dummy objects
      
      * fix style
      
      * fix typo
      
      * docs
      
      * fix typo in comment
      
      * set return type
      
      * added flax ddom
      
      * fix style
      
      * remake
      
      * pass PRNG key as argument and split before use
      
      * fix doc string
      
      * use config
      
      * added flax Karras VE scheduler
      
      * make style
      
      * fix dummy
      
      * fix ndarray type annotation
      
      * replace returns a new state
      
      * added lms_discrete scheduler
      
      * use self.config
      
      * add_noise needs state
      
      * use config
      
      * use config
      
      * docstring
      
      * added flax score sde ve
      
      * fix imports
      
      * fix typos
      b34be039
  5. 14 Sep, 2022 1 commit
  6. 13 Sep, 2022 1 commit
  7. 08 Sep, 2022 3 commits
  8. 05 Sep, 2022 1 commit
  9. 04 Sep, 2022 1 commit
  10. 11 Aug, 2022 1 commit
  11. 09 Aug, 2022 1 commit
  12. 03 Aug, 2022 1 commit
  13. 21 Jul, 2022 2 commits
  14. 20 Jul, 2022 1 commit
  15. 19 Jul, 2022 3 commits
  16. 18 Jul, 2022 1 commit
    • Nathan Lambert's avatar
      VE/VP SDE updates (#90) · 63c68d97
      Nathan Lambert authored
      
      
      * improve comments for sde_ve scheduler, init tests
      
      * more comments, tweaking pipelines
      
      * timesteps --> num_training_timesteps, some comments
      
      * merge cpu test, add m1 data
      
      * fix scheduler tests with num_train_timesteps
      
      * make np compatible, add tests for sde ve
      
      * minor default variable fixes
      
      * make style and fix-copies
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      63c68d97
  17. 15 Jul, 2022 2 commits
  18. 29 Jun, 2022 1 commit
  19. 27 Jun, 2022 2 commits
  20. 24 Jun, 2022 1 commit
  21. 22 Jun, 2022 2 commits
  22. 21 Jun, 2022 2 commits
  23. 20 Jun, 2022 4 commits
  24. 17 Jun, 2022 5 commits