1. 13 Sep, 2022 3 commits
    • Kashif Rasul's avatar
      initial flax pndm schedular (#492) · 55f7ca3b
      Kashif Rasul authored
      * initial flax pndm
      
      * fix typo
      
      * use state
      
      * return state
      
      * add FlaxSchedulerOutput
      
      * fix style
      
      * add flax imports
      
      * make style
      
      * fix typos
      
      * return created state
      
      * make style
      
      * add torch/flax imports
      
      * docs
      
      * fixed typo
      
      * remove tensor_format
      
      * round instead of cast
      
      * ets is jnp array
      
      * remove copy
      55f7ca3b
    • Nathan Lambert's avatar
      Fix scheduler inference steps error with power of 3 (#466) · b56f1027
      Nathan Lambert authored
      * initial attempt at solving
      
      * fix pndm power of 3 inference_step
      
      * add power of 3 test
      
      * fix index in pndm test, remove ddim test
      
      * add comments, change to round()
      b56f1027
    • Nathan Lambert's avatar
      Scheduler docs update (#464) · da990633
      Nathan Lambert authored
      * update scheduler docs TODOs, fix typos
      
      * fix another typo
      da990633
  2. 08 Sep, 2022 5 commits
    • Patrick von Platen's avatar
      [Black] Update black (#433) · b2b3b1a8
      Patrick von Platen authored
      * Update black
      
      * update table
      b2b3b1a8
    • Patrick von Platen's avatar
      [Outputs] Improve syntax (#423) · f6fb3282
      Patrick von Platen authored
      
      
      * [Outputs] Improve syntax
      
      * improve more
      
      * fix docstring return
      
      * correct all
      
      * uP
      Co-authored-by: default avatarMishig Davaadorj <dmishig@gmail.com>
      f6fb3282
    • Pedro Cuenca's avatar
      Inference support for `mps` device (#355) · 5dda1735
      Pedro Cuenca authored
      * Initial support for mps in Stable Diffusion pipeline.
      
      * Initial "warmup" implementation when using mps.
      
      * Make some deterministic tests pass with mps.
      
      * Disable training tests when using mps.
      
      * SD: generate latents in CPU then move to device.
      
      This is especially important when using the mps device, because
      generators are not supported there. See for example
      https://github.com/pytorch/pytorch/issues/84288.
      
      In addition, the other pipelines seem to use the same approach: generate
      the random samples then move to the appropriate device.
      
      After this change, generating an image in MPS produces the same result
      as when using the CPU, if the same seed is used.
      
      * Remove prints.
      
      * Pass AutoencoderKL test_output_pretrained with mps.
      
      Sampling from `posterior` must be done in CPU.
      
      * Style
      
      * Do not use torch.long for log op in mps device.
      
      * Perform incompatible padding ops in CPU.
      
      UNet tests now pass.
      See https://github.com/pytorch/pytorch/issues/84535
      
      
      
      * Style: fix import order.
      
      * Remove unused symbols.
      
      * Remove MPSWarmupMixin, do not apply automatically.
      
      We do apply warmup in the tests, but not during normal use.
      This adopts some PR suggestions by @patrickvonplaten.
      
      * Add comment for mps fallback to CPU step.
      
      * Add README_mps.md for mps installation and use.
      
      * Apply `black` to modified files.
      
      * Restrict README_mps to SD, show measures in table.
      
      * Make PNDM indexing compatible with mps.
      
      Addresses #239.
      
      * Do not use float64 when using LDMScheduler.
      
      Fixes #358.
      
      * Fix typo identified by @patil-suraj
      Co-authored-by: default avatarSuraj Patil <surajp815@gmail.com>
      
      * Adapt example to new output style.
      
      * Restore 1:1 results reproducibility with CompVis.
      
      However, mps latents need to be generated in CPU because generators
      don't work in the mps device.
      
      * Move PyTorch nightly to requirements.
      
      * Adapt `test_scheduler_outputs_equivalence` ton MPS.
      
      * mps: skip training tests instead of ignoring silently.
      
      * Make VQModel tests pass on mps.
      
      * mps ddim tests: warmup, increase tolerance.
      
      * ScoreSdeVeScheduler indexing made mps compatible.
      
      * Make ldm pipeline tests pass using warmup.
      
      * Style
      
      * Simplify casting as suggested in PR.
      
      * Add Known Issues to readme.
      
      * `isort` import order.
      
      * Remove _mps_warmup helpers from ModelMixin.
      
      And just make changes to the tests.
      
      * Skip tests using unittest decorator for consistency.
      
      * Remove temporary var.
      
      * Remove spurious blank space.
      
      * Remove unused symbol.
      
      * Remove README_mps.
      Co-authored-by: default avatarSuraj Patil <surajp815@gmail.com>
      Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com> 
      5dda1735
    • Daniel Hug's avatar
      Add typing to scheduling_sde_ve: init, set_timesteps, and set_sigmas function definitions (#412) · a127363d
      Daniel Hug authored
      
      
      Add typing to scheduling_sde_ve init, set_timesteps, and set_sigmas functions
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      a127363d
    • Nathan Lambert's avatar
      [docs sprint] schedulers docs, will update (#376) · e6110f68
      Nathan Lambert authored
      
      
      * init schedulers docs
      
      * add some docstrings, fix sidebar formatting
      
      * add docstrings
      
      * [Type hint] PNDM schedulers (#335)
      
      * [Type hint] PNDM Schedulers
      
      * ran make style
      
      * updated timesteps type hint
      
      * apply suggestions from code review
      
      * ran make style
      
      * removed unused import
      
      * [Type hint] scheduling ddim (#343)
      
      * [Type hint] scheduling ddim
      
      * apply suggestions from code review
      
      apply suggestions to also return the return type
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      
      * make style
      
      * update class docstrings
      
      * add docstrings
      
      * missed merge edit
      
      * add general docs page
      
      * modify headings for right sidebar
      Co-authored-by: default avatarPartho <parthodas6176@gmail.com>
      Co-authored-by: default avatarSantiago Víquez <santi.viquez@gmail.com>
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      e6110f68
  3. 05 Sep, 2022 3 commits
  4. 04 Sep, 2022 3 commits
  5. 01 Sep, 2022 1 commit
  6. 31 Aug, 2022 3 commits
  7. 30 Aug, 2022 1 commit
  8. 29 Aug, 2022 2 commits
  9. 22 Aug, 2022 2 commits
  10. 17 Aug, 2022 1 commit
  11. 16 Aug, 2022 6 commits
  12. 14 Aug, 2022 1 commit
  13. 12 Aug, 2022 1 commit
  14. 11 Aug, 2022 2 commits
  15. 09 Aug, 2022 1 commit
  16. 06 Aug, 2022 1 commit
  17. 03 Aug, 2022 1 commit
  18. 21 Jul, 2022 3 commits