1. 30 Jul, 2024 1 commit
  2. 26 Jul, 2024 1 commit
    • Sayak Paul's avatar
      [Chore] add `LoraLoaderMixin` to the inits (#8981) · d87fe95f
      Sayak Paul authored
      
      
      * introduce  to promote reusability.
      
      * up
      
      * add more tests
      
      * up
      
      * remove comments.
      
      * fix fuse_nan test
      
      * clarify the scope of fuse_lora and unfuse_lora
      
      * remove space
      
      * rewrite fuse_lora a bit.
      
      * feedback
      
      * copy over load_lora_into_text_encoder.
      
      * address dhruv's feedback.
      
      * fix-copies
      
      * fix issubclass.
      
      * num_fused_loras
      
      * fix
      
      * fix
      
      * remove mapping
      
      * up
      
      * fix
      
      * style
      
      * fix-copies
      
      * change to SD3TransformerLoRALoadersMixin
      
      * Apply suggestions from code review
      Co-authored-by: default avatarDhruv Nair <dhruv.nair@gmail.com>
      
      * up
      
      * handle wuerstchen
      
      * up
      
      * move lora to lora_pipeline.py
      
      * up
      
      * fix-copies
      
      * fix documentation.
      
      * comment set_adapters().
      
      * fix-copies
      
      * fix set_adapters() at the model level.
      
      * fix?
      
      * fix
      
      * loraloadermixin.
      
      ---------
      Co-authored-by: default avatarDhruv Nair <dhruv.nair@gmail.com>
      d87fe95f
  3. 25 Jul, 2024 2 commits
    • YiYi Xu's avatar
      Revert "[LoRA] introduce LoraBaseMixin to promote reusability." (#8976) · 62863bb1
      YiYi Xu authored
      Revert "[LoRA] introduce LoraBaseMixin to promote reusability. (#8774)"
      
      This reverts commit 527430d0.
      62863bb1
    • Sayak Paul's avatar
      [LoRA] introduce LoraBaseMixin to promote reusability. (#8774) · 527430d0
      Sayak Paul authored
      
      
      * introduce  to promote reusability.
      
      * up
      
      * add more tests
      
      * up
      
      * remove comments.
      
      * fix fuse_nan test
      
      * clarify the scope of fuse_lora and unfuse_lora
      
      * remove space
      
      * rewrite fuse_lora a bit.
      
      * feedback
      
      * copy over load_lora_into_text_encoder.
      
      * address dhruv's feedback.
      
      * fix-copies
      
      * fix issubclass.
      
      * num_fused_loras
      
      * fix
      
      * fix
      
      * remove mapping
      
      * up
      
      * fix
      
      * style
      
      * fix-copies
      
      * change to SD3TransformerLoRALoadersMixin
      
      * Apply suggestions from code review
      Co-authored-by: default avatarDhruv Nair <dhruv.nair@gmail.com>
      
      * up
      
      * handle wuerstchen
      
      * up
      
      * move lora to lora_pipeline.py
      
      * up
      
      * fix-copies
      
      * fix documentation.
      
      * comment set_adapters().
      
      * fix-copies
      
      * fix set_adapters() at the model level.
      
      * fix?
      
      * fix
      
      ---------
      Co-authored-by: default avatarDhruv Nair <dhruv.nair@gmail.com>
      527430d0
  4. 24 Jun, 2024 2 commits
  5. 21 Jun, 2024 1 commit
  6. 10 May, 2024 1 commit
    • Mark Van Aken's avatar
      #7535 Update FloatTensor type hints to Tensor (#7883) · be4afa0b
      Mark Van Aken authored
      * find & replace all FloatTensors to Tensor
      
      * apply formatting
      
      * Update torch.FloatTensor to torch.Tensor in the remaining files
      
      * formatting
      
      * Fix the rest of the places where FloatTensor is used as well as in documentation
      
      * formatting
      
      * Update new file from FloatTensor to Tensor
      be4afa0b
  7. 19 Apr, 2024 1 commit
  8. 25 Mar, 2024 1 commit
  9. 28 Feb, 2024 1 commit
  10. 25 Feb, 2024 1 commit
  11. 16 Feb, 2024 1 commit
  12. 02 Jan, 2024 1 commit
  13. 18 Dec, 2023 1 commit
  14. 27 Nov, 2023 1 commit
  15. 20 Nov, 2023 1 commit
  16. 15 Nov, 2023 1 commit
  17. 02 Oct, 2023 1 commit
  18. 25 Sep, 2023 1 commit
  19. 18 Sep, 2023 1 commit
  20. 12 Sep, 2023 1 commit
  21. 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
  22. 31 Aug, 2023 1 commit
  23. 25 Aug, 2023 1 commit
  24. 18 Aug, 2023 1 commit
  25. 17 Aug, 2023 1 commit
  26. 02 Aug, 2023 1 commit
  27. 01 Aug, 2023 1 commit
  28. 30 Jul, 2023 1 commit
  29. 28 Jul, 2023 2 commits
    • Sayak Paul's avatar
      [Feat] Support SDXL Kohya-style LoRA (#4287) · 4a4cdd6b
      Sayak Paul authored
      
      
      * sdxl lora changes.
      
      * better name replacement.
      
      * better replacement.
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * remove print.
      
      * print state dict keys.
      
      * print
      
      * distingisuih better
      
      * debuggable.
      
      * fxi: tyests
      
      * fix: arg from training script.
      
      * access from class.
      
      * run style
      
      * debug
      
      * save intermediate
      
      * some simplifications for SDXL LoRA
      
      * styling
      
      * unet config is not needed in diffusers format.
      
      * fix: dynamic SGM block mapping for SDXL kohya loras (#4322)
      
      * Use lora compatible layers for linear proj_in/proj_out (#4323)
      
      * improve condition for using the sgm_diffusers mapping
      
      * informative comment.
      
      * load compatible keys and embedding layer maaping.
      
      * Get SDXL 1.0 example lora to load
      
      * simplify
      
      * specif ranks and hidden sizes.
      
      * better handling of k rank and hidden
      
      * debug
      
      * debug
      
      * debug
      
      * debug
      
      * debug
      
      * fix: alpha keys
      
      * add check for handling LoRAAttnAddedKVProcessor
      
      * sanity comment
      
      * modifications for text encoder SDXL
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * denugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * up
      
      * up
      
      * up
      
      * up
      
      * up
      
      * up
      
      * unneeded comments.
      
      * unneeded comments.
      
      * kwargs for the other attention processors.
      
      * kwargs for the other attention processors.
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * improve
      
      * debugging
      
      * debugging
      
      * more print
      
      * Fix alphas
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * clean up
      
      * clean up.
      
      * debugging
      
      * fix: text
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      Co-authored-by: default avatarBatuhan Taskaya <batuhan@python.org>
      4a4cdd6b
    • Patrick von Platen's avatar
      [SDXL] Make watermarker optional under certain circumstances to improve... · b7b6d613
      Patrick von Platen authored
      [SDXL] Make watermarker optional under certain circumstances to improve usability of SDXL 1.0 (#4346)
      
      * improve sdxl
      
      * more fixes
      
      * improve sdxl
      
      * improve sdxl
      
      * improve sdxl
      
      * finish
      b7b6d613
  30. 26 Jul, 2023 2 commits
  31. 25 Jul, 2023 2 commits
  32. 24 Jul, 2023 4 commits
    • 39th president of the United States, probably's avatar
      Allow specifying denoising_start and denoising_end as integers representing... · e98fabc5
      Allow specifying denoising_start and denoising_end as integers representing the discrete timesteps, fixing the XL ensemble not working for many schedulers (#4115)
      
      * Fix the XL ensemble not working for any kerras scheduler sigmas and having an off by one bug
      
      * Update src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py
      
      * make sytle
      
      ---------
      
      Co-authored-by: Jimmy <39@🇺🇸
      
      .com>
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      e98fabc5
    • Patrick von Platen's avatar
      [SDXL] Fix sd xl encode prompt (#4237) · b288684d
      Patrick von Platen authored
      * [SDXL] Fix sd xl encode prompt
      
      * add tests
      b288684d
    • Hu Ye's avatar
      fix a bug of `prompt embeds` in sdxl (#4099) · 8e5921ca
      Hu Ye authored
      
      
      * fix bug in sdxl
      
      * Update pipeline_stable_diffusion_xl_img2img.py
      
      * Update pipeline_stable_diffusion_xl.py
      
      * Update pipeline_stable_diffusion_xl_img2img.py
      
      * Update pipeline_stable_diffusion_xl_inpaint.py
      
      * Update pipeline_stable_diffusion_xl.py
      
      * Update pipeline_stable_diffusion_xl_img2img.py
      
      * Update pipeline_stable_diffusion_xl_inpaint.py
      
      * Update pipeline_stable_diffusion_xl_img2img.py
      
      * Update pipeline_controlnet_sd_xl.py
      
      * Update pipeline_controlnet_sd_xl.py
      
      * Update pipeline_stable_diffusion_xl.py
      
      * Update pipeline_stable_diffusion_xl_img2img.py
      
      * Update pipeline_stable_diffusion_xl_inpaint.py
      
      * Update test_stable_diffusion_xl.py
      
      * Update test_stable_diffusion_xl.py
      
      * Update test_stable_diffusion_xl.py
      
      add test on prompt_embeds
      
      * add test on prompt_embeds
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      8e5921ca
    • YiYi Xu's avatar
      fix no CFG for kandinsky pipelines (#4193) · 8e8954bd
      YiYi Xu authored
      
      
      * fix bug when no cfg
      
      * style
      
      * fix no cfg for shap-e and cycle
      
      * style
      
      * fix no cfg for sdxl
      
      * fix copies
      
      ---------
      Co-authored-by: default avataryiyixuxu <yixu310@gmail,com>
      8e8954bd