1. 14 Sep, 2023 2 commits
    • Patrick von Platen's avatar
      [Release 0.21] Bump version (#5018) · 342c5c02
      Patrick von Platen authored
      * [Release 0.21] Bump version
      
      * fix & remove
      
      * fix more
      
      * fix all, upload
      342c5c02
    • UmerHA's avatar
      Add Prompt2Prompt pipeline (#4563) · 169fc4ad
      UmerHA authored
      
      
      * Initial commit P2P
      
      * Replaced CrossAttention, added test skeleton
      
      * bug fixes
      
      * Updated docstring
      
      * Removed unused function
      
      * Created tests
      
      * improved tests
      
      - made fast inference tests faster
      - corrected image shape assertions
      
      * Corrected expected output shape in tests
      
      * small fix: test inputs
      
      * Update tests
      
      - used conditional unet2d
      - set expected image slices
      - edit_kwargs are now not popped, so pipe can be run multiple times
      
      * Fixed bug in int tests
      
      * Fixed tests
      
      * Linting
      
      * Create prompt2prompt.md
      
      * Added to docs toc
      
      * Ran make fix-copies
      
      * Fixed code blocks in docs
      
      * Using same interface as StableDiffusionPipeline
      
      * Fixed small test bug
      
      * Added all options SDPipeline.__call_ has
      
      * Fixed docstring; made __call__ like in SD
      
      * Linting
      
      * Added test for multiple prompts
      
      * Improved docs
      
      * Incorporated feedback
      
      * Reverted formatting on unrelated files
      
      * Moved prompt2prompt to community
      
      - Moved prompt2prompt pipeline from main to community
      - Deleted tests
      - Moved documentation to community and shorted it
      
      * Update src/diffusers/utils/dummy_torch_and_transformers_objects.py
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      169fc4ad
  2. 12 Sep, 2023 2 commits
  3. 11 Sep, 2023 1 commit
    • Dhruv Nair's avatar
      Lazy Import for Diffusers (#4829) · b6e0b016
      Dhruv Nair authored
      
      
      * initial commit
      
      * move modules to import struct
      
      * add dummy objects and _LazyModule
      
      * add lazy import to schedulers
      
      * clean up unused imports
      
      * lazy import on models module
      
      * lazy import for schedulers module
      
      * add lazy import to pipelines module
      
      * lazy import altdiffusion
      
      * lazy import audio diffusion
      
      * lazy import audioldm
      
      * lazy import consistency model
      
      * lazy import controlnet
      
      * lazy import dance diffusion ddim ddpm
      
      * lazy import deepfloyd
      
      * lazy import kandinksy
      
      * lazy imports
      
      * lazy import semantic diffusion
      
      * lazy imports
      
      * lazy import stable diffusion
      
      * move sd output to its own module
      
      * clean up
      
      * lazy import t2iadapter
      
      * lazy import unclip
      
      * lazy import versatile and vq diffsuion
      
      * lazy import vq diffusion
      
      * helper to fetch objects from modules
      
      * lazy import sdxl
      
      * lazy import txt2vid
      
      * lazy import stochastic karras
      
      * fix model imports
      
      * fix bug
      
      * lazy import
      
      * clean up
      
      * clean up
      
      * fixes for tests
      
      * fixes for tests
      
      * clean up
      
      * remove import of torch_utils from utils module
      
      * clean up
      
      * clean up
      
      * fix mistake import statement
      
      * dedicated modules for exporting and loading
      
      * remove testing utils from utils module
      
      * fixes from  merge conflicts
      
      * Update src/diffusers/pipelines/kandinsky2_2/__init__.py
      
      * fix docs
      
      * fix alt diffusion copied from
      
      * fix check dummies
      
      * fix more docs
      
      * remove accelerate import from utils module
      
      * add type checking
      
      * make style
      
      * fix check dummies
      
      * remove torch import from xformers check
      
      * clean up error message
      
      * fixes after upstream merges
      
      * dummy objects fix
      
      * fix tests
      
      * remove unused module import
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      b6e0b016
  4. 08 Sep, 2023 3 commits
  5. 05 Sep, 2023 1 commit
  6. 04 Sep, 2023 1 commit
    • Isamu Isozaki's avatar
      Retrieval Augmented Diffusion Models (#3297) · 3201903d
      Isamu Isozaki authored
      
      
      * Resetting rdm pr
      
      * Fixed styles
      
      * Fixed style
      
      * Moved to rdm folder+fixed slight errors
      
      * Removed config diff
      
      * Started adding tests
      
      * Adding retrieved images
      
      * Fixed faiss import
      
      * Fixed import errors
      
      * Fixing tests
      
      * Added require_faiss
      
      * Updated dependency table
      
      * Attempt solving consistency test
      
      * Fixed truncation and vocab size issue
      
      * Passed common tests
      
      * Finished up cpu testing on pipeline
      
      * Passed all tests locally
      
      * Removed some slow tests
      
      * Removed diffs from test_pipeline_common
      
      * Remove logs
      
      * Removed diffs from test_pipelines_common
      
      * Fixed style
      
      * Fully fixed styles on diffs
      
      * Fixed name
      
      * Proper rename
      
      * Fixed dummies
      
      * Fixed issue with dummyonnx
      
      * Fixed black style
      
      * Fixed dummies
      
      * Changed ordering
      
      * Fixed logging
      
      * Fixing
      
      * Fixing
      
      * quality
      
      * Debugging regex
      
      * Fix dummies with guess
      
      * Fixed typo
      
      * Attempt fix dummies
      
      * black
      
      * ruff
      
      * fixed ordering
      
      * Logging
      
      * Attempt fix
      
      * Attempt fix dummy
      
      * Attempt fixing styles
      
      * Fixed faiss dependency
      
      * Removed unnecessary deprecations
      
      * Finished up main changes
      
      * Added doc
      
      * Passed tests
      
      * Fixed tests
      
      * Remove invisible watermark
      
      * Fixed ruff errors
      
      * Added prompt embed to tests
      
      * Added tests and made retriever an optional component
      
      * Fixed styles
      
      * Made faiss a dependency of pipeline
      
      * Logging
      
      * Fixed dummies
      
      * Make pipeline test work
      
      * Fixed style
      
      * Moved to research projects
      
      * Remove diff
      
      * Fixed style error
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      3201903d
  7. 31 Aug, 2023 1 commit
  8. 30 Aug, 2023 2 commits
  9. 28 Aug, 2023 4 commits
    • Mario Namtao Shianti Larcher's avatar
      [Examples] Save SDXL LoRA weights with chosen precision (#4791) · 87ae3300
      Mario Namtao Shianti Larcher authored
      * Increase min accelerate ver to avoid OOM when mixed precision
      
      * Rm re-instantiation of VAE
      
      * Rm casting to float32
      
      * Del unused models and free GPU
      
      * Fix style
      87ae3300
    • Patrick von Platen's avatar
      make style · 1b46c661
      Patrick von Platen authored
      1b46c661
    • Yead's avatar
      Fix save_path bug in textual inversion training script (#4710) · 03135898
      Yead authored
      
      
      * Update textual_inversion.py
      
      fixed safe_path bug in textual inversion training
      
      * Update test_examples.py
      
      update test_textual_inversion for updating saved file's name
      
      * Update textual_inversion.py
      
      fixed some formatting issues
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      03135898
    • Shauray Singh's avatar
      [WIP] Add Fabric (#4201) · fd35689f
      Shauray Singh authored
      
      
      * empty PR
      
      * init
      
      * changes
      
      * starting with the pipeline
      
      * stable diff
      
      * prev
      
      * more things, getting started
      
      * more functions
      
      * makeing it more readable
      
      * almost done testing
      
      * var changes
      
      * testing
      
      * device
      
      * device support
      
      * maybe
      
      * device malfunctions
      
      * new new
      
      * register
      
      * testing
      
      * exec does not work
      
      * float
      
      * change info
      
      * change of architecture
      
      * might work
      
      * testing with colab
      
      * more attn atuff
      
      * stupid additions
      
      * documenting and testing
      
      * writing tests
      
      * more docs
      
      * tests and docs
      
      * remove test
      
      * empty PR
      
      * init
      
      * changes
      
      * starting with the pipeline
      
      * stable diff
      
      * prev
      
      * more things, getting started
      
      * more functions
      
      * makeing it more readable
      
      * almost done testing
      
      * var changes
      
      * testing
      
      * device
      
      * device support
      
      * maybe
      
      * device malfunctions
      
      * new new
      
      * register
      
      * testing
      
      * exec does not work
      
      * float
      
      * change info
      
      * change of architecture
      
      * might work
      
      * testing with colab
      
      * more attn atuff
      
      * stupid additions
      
      * documenting and testing
      
      * writing tests
      
      * more docs
      
      * tests and docs
      
      * remove test
      
      * change cross attention
      
      * revert back
      
      * tests
      
      * reverting back to orig
      
      * changes
      
      * test passing
      
      * pipeline changes
      
      * before quality
      
      * quality checks pass
      
      * remove print statements
      
      * doc fixes
      
      * __init__ error something
      
      * update docs, working on dim
      
      * working on encoding
      
      * doc fix
      
      * more fixes
      
      * no more dependent on 512*512
      
      * update docs
      
      * fixes
      
      * test passing
      
      * remove comment
      
      * fixes and migration
      
      * simpler tests
      
      * doc changes
      
      * green CI
      
      * changes
      
      * more docs
      
      * changes
      
      * new images
      
      * to community examples
      
      * selete
      
      * more fixes
      
      * changes
      
      * fix
      
      ---------
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      fd35689f
  10. 26 Aug, 2023 1 commit
    • Canberk Kandemir's avatar
      Unet fix (#4769) · 0d81e543
      Canberk Kandemir authored
      * Optional images variable train_custom_diffusion.py
      
      * Fixed train_custom_diffusion.py
      
      * Revert accidental changes to unet_2d_condition.py
      
      * "Format code with black"
      0d81e543
  11. 25 Aug, 2023 5 commits
  12. 23 Aug, 2023 2 commits
  13. 22 Aug, 2023 2 commits
  14. 18 Aug, 2023 1 commit
  15. 17 Aug, 2023 2 commits
  16. 16 Aug, 2023 3 commits
  17. 15 Aug, 2023 1 commit
  18. 14 Aug, 2023 1 commit
  19. 12 Aug, 2023 1 commit
  20. 11 Aug, 2023 3 commits
  21. 09 Aug, 2023 1 commit