1. 25 Apr, 2023 1 commit
    • Patrick von Platen's avatar
      add model (#3230) · e51f19ae
      Patrick von Platen authored
      
      
      * add
      
      * clean
      
      * up
      
      * clean up more
      
      * fix more tests
      
      * Improve docs further
      
      * improve
      
      * more fixes docs
      
      * Improve docs more
      
      * Update src/diffusers/models/unet_2d_condition.py
      
      * fix
      
      * up
      
      * update doc links
      
      * make fix-copies
      
      * add safety checker and watermarker to stage 3 doc page code snippets
      
      * speed optimizations docs
      
      * memory optimization docs
      
      * make style
      
      * add watermarking snippets to doc string examples
      
      * make style
      
      * use pt_to_pil helper functions in doc strings
      
      * skip mps tests
      
      * Improve safety
      
      * make style
      
      * new logic
      
      * fix
      
      * fix bad onnx design
      
      * make new stable diffusion upscale pipeline model arguments optional
      
      * define has_nsfw_concept when non-pil output type
      
      * lowercase linked to notebook name
      
      ---------
      Co-authored-by: default avatarWilliam Berman <WLBberman@gmail.com>
      e51f19ae
  2. 17 Apr, 2023 1 commit
  3. 30 Mar, 2023 1 commit
  4. 28 Mar, 2023 1 commit
  5. 27 Mar, 2023 1 commit
  6. 21 Mar, 2023 1 commit
  7. 16 Mar, 2023 1 commit
  8. 10 Mar, 2023 1 commit
  9. 09 Mar, 2023 1 commit
  10. 01 Mar, 2023 1 commit
  11. 27 Feb, 2023 1 commit
  12. 16 Feb, 2023 1 commit
  13. 07 Feb, 2023 1 commit
  14. 01 Feb, 2023 1 commit
  15. 24 Jan, 2023 1 commit
  16. 19 Jan, 2023 1 commit
  17. 18 Jan, 2023 1 commit
  18. 12 Jan, 2023 1 commit
  19. 30 Dec, 2022 1 commit
  20. 29 Dec, 2022 1 commit
  21. 20 Dec, 2022 1 commit
  22. 14 Dec, 2022 1 commit
  23. 09 Dec, 2022 1 commit
  24. 07 Dec, 2022 1 commit
  25. 02 Dec, 2022 1 commit
    • Matthieu Bizien's avatar
      [Proposal] Support saving to safetensors (#1494) · ae368e42
      Matthieu Bizien authored
      * Add parameter safe_serialization to DiffusionPipeline.save_pretrained
      
      * Add option safe_serialization on ModelMixin.save_pretrained
      
      * Add test test_save_safe_serialization
      
      * Black
      
      * Re-trigger the CI
      
      * Fix doc-builder
      
      * Validate files are saved as safetensor in test_save_safe_serialization
      ae368e42
  26. 30 Nov, 2022 2 commits
  27. 28 Nov, 2022 1 commit
  28. 24 Nov, 2022 1 commit
  29. 22 Nov, 2022 1 commit
  30. 04 Nov, 2022 1 commit
  31. 03 Nov, 2022 2 commits
  32. 12 Oct, 2022 3 commits
  33. 05 Oct, 2022 1 commit
  34. 04 Oct, 2022 1 commit
    • Pi Esposito's avatar
      add accelerate to load models with smaller memory footprint (#361) · 4d1cce2f
      Pi Esposito authored
      
      
      * add accelerate to load models with smaller memory footprint
      
      * remove low_cpu_mem_usage as it is reduntant
      
      * move accelerate init weights context to modelling utils
      
      * add test to ensure results are the same when loading with accelerate
      
      * add tests to ensure ram usage gets lower when using accelerate
      
      * move accelerate logic to single snippet under modelling utils and remove it from configuration utils
      
      * format code using to pass quality check
      
      * fix imports with isor
      
      * add accelerate to test extra deps
      
      * only import accelerate if device_map is set to auto
      
      * move accelerate availability check to diffusers import utils
      
      * format code
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      4d1cce2f
  35. 22 Sep, 2022 1 commit
    • Suraj Patil's avatar
      [UNet2DConditionModel] add gradient checkpointing (#461) · e7120bae
      Suraj Patil authored
      * add grad ckpt to downsample blocks
      
      * make it work
      
      * don't pass gradient_checkpointing to upsample block
      
      * add tests for UNet2DConditionModel
      
      * add test_gradient_checkpointing
      
      * add gradient_checkpointing for up and down blocks
      
      * add functions to enable and disable grad ckpt
      
      * remove the forward argument
      
      * better naming
      
      * make supports_gradient_checkpointing private
      e7120bae
  36. 21 Sep, 2022 1 commit