1. 16 Jan, 2024 2 commits
    • Celestial Phineas's avatar
      [Fix] Multiple image conditionings in a single batch for... · 1040dfd9
      Celestial Phineas authored
      
      [Fix] Multiple image conditionings in a single batch for `StableDiffusionControlNetPipeline` (#6334)
      
      * [Fix] Multiple image conditionings in a single batch for `StableDiffusionControlNetPipeline`.
      
      * Refactor `check_inputs` in `StableDiffusionControlNetPipeline` to avoid redundant codes.
      
      * Make the behavior of MultiControlNetModel to be the same to the original ControlNetModel
      
      * Keep the code change minimum for nested list support
      
      * Add fast test `test_inference_nested_image_input`
      
      * Remove redundant check for nested image condition in `check_inputs`
      
      Remove `len(image) == len(prompt)` check out of `check_image()`
      Co-authored-by: default avatarYiYi Xu <yixu310@gmail.com>
      
      * Better `ValueError` message for incompatible nested image list size
      Co-authored-by: default avatarYiYi Xu <yixu310@gmail.com>
      
      * Fix syntax error in `check_inputs`
      
      * Remove warning message for multi-ControlNets with multiple prompts
      
      * Fix a typo in test_controlnet.py
      Co-authored-by: default avatarYiYi Xu <yixu310@gmail.com>
      
      * Add test case for multiple prompts, single image conditioning in `StableDiffusionMultiControlNetPipelineFastTests`
      
      * Improved `ValueError` message for nested `controlnet_conditioning_scale`
      
      * Documenting the behavior of image list as `StableDiffusionControlNetPipeline` input
      
      ---------
      Co-authored-by: default avatarYiYi Xu <yixu310@gmail.com>
      1040dfd9
    • Dong's avatar
      🐛 fix ip-adapter controlnet img2img missing code (#6528) · 814f56d2
      Dong authored
      * 🐛 fix ip-adapter controlnet img2img missing code
      
      * 📝 edit test
      
      * 📝 edit test
      
      * 📝 run make style and quality
      
      * 🎨 remove slow tests
      814f56d2
  2. 10 Jan, 2024 1 commit
  3. 24 Dec, 2023 1 commit
  4. 19 Dec, 2023 1 commit
  5. 14 Dec, 2023 1 commit
  6. 09 Dec, 2023 1 commit
  7. 04 Dec, 2023 1 commit
    • takuoko's avatar
      [Feature] Support IP-Adapter Plus (#5915) · 0a08d419
      takuoko authored
      
      
      * Support IP-Adapter Plus
      
      * fix format
      
      * restore before black format
      
      * restore before black format
      
      * generic
      
      * Refactor PerceiverAttention
      
      * format
      
      * fix test and refactor PerceiverAttention
      
      * generic encode_image
      
      * keep attention implementation
      
      * merge tests
      
      * encode_image backward compatible
      
      * code quality
      
      * fix controlnet inpaint pipeline
      
      * refactor FFN
      
      * refactor FFN
      
      ---------
      Co-authored-by: default avatarYiYi Xu <yixu310@gmail.com>
      0a08d419
  8. 29 Nov, 2023 1 commit
  9. 27 Nov, 2023 2 commits
    • Patrick von Platen's avatar
      [Vae] Make sure all vae's work with latent diffusion models (#5880) · e550163b
      Patrick von Platen authored
      * add comments to explain the code better
      
      * add comments to explain the code better
      
      * add comments to explain the code better
      
      * add comments to explain the code better
      
      * add comments to explain the code better
      
      * fix more
      
      * fix more
      
      * fix more
      
      * fix more
      
      * fix more
      
      * fix more
      e550163b
    • dg845's avatar
      Add Custom Timesteps Support to LCMScheduler and Supported Pipelines (#5874) · 67d07074
      dg845 authored
      * Add custom timesteps support to LCMScheduler.
      
      * Add custom timesteps support to StableDiffusionPipeline.
      
      * Add custom timesteps support to StableDiffusionXLPipeline.
      
      * Add custom timesteps support to remaining Stable Diffusion pipelines which support LCMScheduler (img2img, inpaint).
      
      * Add custom timesteps support to remaining Stable Diffusion XL pipelines which support LCMScheduler (img2img, inpaint).
      
      * Add custom timesteps support to StableDiffusionControlNetPipeline.
      
      * Add custom timesteps support to T21 Stable Diffusion (XL) Adapters.
      
      * Clean up Stable Diffusion inpaint tests.
      
      * Manually add support for custom timesteps to AltDiffusion pipelines since make fix-copies doesn't appear to work correctly (it deletes the whole pipeline).
      
      * make style
      
      * Refactor pipeline timestep handling into the retrieve_timesteps function.
      67d07074
  10. 21 Nov, 2023 2 commits
  11. 20 Nov, 2023 1 commit
  12. 16 Nov, 2023 1 commit
  13. 10 Nov, 2023 1 commit
  14. 09 Nov, 2023 1 commit
  15. 03 Nov, 2023 1 commit
  16. 01 Nov, 2023 1 commit
  17. 25 Oct, 2023 2 commits
  18. 23 Oct, 2023 2 commits
  19. 21 Oct, 2023 1 commit
  20. 17 Oct, 2023 1 commit
    • Sayak Paul's avatar
      [Core] Fix/pipeline without text encoders for SDXL (#5301) · 8b3d2aea
      Sayak Paul authored
      
      
      * fix: sdxl pipeline when unet is not available.
      
      * fix moe
      
      * account for text
      
      * ifx more
      
      * don't make unet optional.
      
      * Apply suggestions from code review
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      
      * split conditionals.
      
      * add optional components to sdxl pipeline
      
      * propagate changes to the rest of the pipelines.
      
      * add: test
      
      * add to all
      
      * fix: rest of the pipelines.
      
      * use pipeline_class variable
      
      * separate pipeline mixin
      
      * use safe_serialization
      
      * fix: test
      
      * access actual output.
      
      * add: optional test to adapter and ip2p sdxl pipeline tests/
      
      * add optional test to controlnet sdxl.
      
      * fix tests
      
      * fix ip2p tests
      
      * fix more
      
      * fifx more.
      
      * use np output type.
      
      * fix for StableDiffusionXLMultiControlNetPipelineFastTests.
      
      * fix: SDXLOptionalComponentsTesterMixin
      
      * Apply suggestions from code review
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      
      * fix tests
      
      * Empty-Commit
      
      * revert previous
      
      * quality
      
      * fix: test
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      8b3d2aea
  21. 13 Oct, 2023 2 commits
  22. 09 Oct, 2023 2 commits
  23. 04 Oct, 2023 1 commit
    • Dhruv Nair's avatar
      New Pipeline Slow Test runners (#5131) · dd5a3629
      Dhruv Nair authored
      
      
      * pipline fetcher
      
      * update script
      
      * clean up
      
      * clean up
      
      * clean up
      
      * new pipeline runner
      
      * rename tests to match modules
      
      * test actions in pr
      
      * change runner to gpu
      
      * clean up
      
      * clean up
      
      * clean up
      
      * fix report
      
      * fix reporting
      
      * clean up
      
      * show test stats in failure reports
      
      * give names to jobs
      
      * add lora tests
      
      * split torch cuda tests and add compile tests
      
      * clean up
      
      * fix tests
      
      * change push to run only on main
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      dd5a3629
  24. 02 Oct, 2023 1 commit
  25. 29 Sep, 2023 1 commit
  26. 25 Sep, 2023 4 commits
  27. 22 Sep, 2023 2 commits
  28. 21 Sep, 2023 1 commit
    • Ayush Mangal's avatar
      Add BLIP Diffusion (#4388) · 157c9011
      Ayush Mangal authored
      
      
      * Add BLIP Diffusion skeleton
      
      * Add other model components
      
      * Add BLIP2, need to change it for now
      
      * Fix pipeline imports
      
      * Load pretrained ViT
      
      * Make qformer fwd pass same
      
      * Replicate fwd passes
      
      * Fix device bug
      
      * Add accelerate functions
      
      * Remove extra functions from Blip2
      
      * Minor bug
      
      * Integrate initial review changes
      
      * Refactoring
      
      * Refactoring
      
      * Refactor
      
      * Add controlnet
      
      * Refactor
      
      * Update conversion script
      
      * Add image processor
      
      * Shift postprocessing to ImageProcessor
      
      * Refactor
      
      * Fix device
      
      * Add fast tests
      
      * Update conversion script
      
      * Fix checkpoint conversion script
      
      * Integrate review changes
      
      * Integrate reivew changes
      
      * Remove unused functions from test
      
      * Reuse HF image processor in Cond image
      
      * Create new BlipImageProcessor based on transfomers
      
      * Fix image preprocessor
      
      * Minor
      
      * Minor
      
      * Add canny preprocessing
      
      * Fix controlnet preprocessing
      
      * Fix blip diffusion test
      
      * Add controlnet test
      
      * Add initial doc strings
      
      * Integrate review changes
      
      * Refactor
      
      * Update examples
      
      * Remove DDIM comments
      
      * Add copied from for prepare_latents
      
      * Add type anotations
      
      * Add docstrings
      
      * Do black formatting
      
      * Add batch support
      
      * Make tests pass
      
      * Make controlnet tests pass
      
      * Black formatting
      
      * Fix progress bar
      
      * Fix some licensing comments
      
      * Fix imports
      
      * Refactor controlnet
      
      * Make tests faster
      
      * Edit examples
      
      * Black formatting/Ruff
      
      * Add doc
      
      * Minor
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      
      * Move controlnet pipeline
      
      * Make tests faster
      
      * Fix imports
      
      * Fix formatting
      
      * Fix make errors
      
      * Fix make errors
      
      * Minor
      
      * Add suggested doc changes
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      
      * Edit docs
      
      * Fix 16 bit loading
      
      * Update examples
      
      * Edit toctree
      
      * Update docs/source/en/api/pipelines/blip_diffusion.md
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      
      * Minor
      
      * Add tips
      
      * Edit examples
      
      * Update model paths
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      157c9011
  29. 19 Sep, 2023 1 commit