1. 25 Jul, 2023 2 commits
    • Sayak Paul's avatar
      [SDXL DreamBooth LoRA] add support for text encoder fine-tuning (#4097) · 365e8461
      Sayak Paul authored
      
      
      * Allow low precision sd xl
      
      * finish
      
      * finish
      
      * feat: initial draft for supporting text encoder lora finetuning for SDXL DreamBooth
      
      * fix: variable assignments.
      
      * add: autocast block.
      
      * add debugging
      
      * vae dtype hell
      
      * fix: vae dtype hell.
      
      * fix: vae dtype hell 3.
      
      * clean up
      
      * lora text encoder loader.
      
      * fix: unwrapping models.
      
      * add: tests.
      
      * docs.
      
      * handle unexpected keys.
      
      * fix vae dtype in the final inference.
      
      * fix scope problem.
      
      * fix: save_model_card args.
      
      * initialize: prefix to None.
      
      * fix: dtype issues.
      
      * apply gixes.
      
      * debgging.
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * debugging
      
      * add: fast tests.
      
      * pre-tokenize.
      
      * address: will's comments.
      
      * fix: loader and tests.
      
      * fix: dataloader.
      
      * simplify dataloader.
      
      * length.
      
      * simplification.
      
      * make style && make quality
      
      * simplify state_dict munging
      
      * fix: tests.
      
      * fix: state_dict packing.
      
      * Apply suggestions from code review
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      365e8461
    • Sayak Paul's avatar
      [ControlNet SDXL training] fixes in the training script (#4223) · fed12376
      Sayak Paul authored
      * fix: #4206
      
      * add: sdxl controlnet training smoketest.
      
      * remove unnecessary token inits.
      
      * add: licensing to model card.
      
      * include SDXL licensing in the model card and make public visibility default
      
      * debugging
      
      * debugging
      
      * disable local file download.
      
      * fix: training test.
      
      * fix: ckpt prefix.
      fed12376
  2. 24 Jul, 2023 11 commits
  3. 21 Jul, 2023 11 commits
  4. 20 Jul, 2023 4 commits
  5. 19 Jul, 2023 4 commits
  6. 18 Jul, 2023 6 commits
    • Zhao Shenyang's avatar
      Docs/bentoml integration (#4090) · ed2a3584
      Zhao Shenyang authored
      
      
      * docs: first draft of BentoML integration
      
      * Update the diffusers doc
      
      * Apply suggestions from code review
      Co-authored-by: default avatarSteven Liu <59462357+stevhliu@users.noreply.github.com>
      
      * add BentoML integration guide under Optimization section
      
      * restyle codes
      
      ---------
      Co-authored-by: default avatarSherlock113 <sherlockxu07@gmail.com>
      Co-authored-by: default avatarSteven Liu <59462357+stevhliu@users.noreply.github.com>
      ed2a3584
    • Sayak Paul's avatar
      [Core] add: controlnet support for SDXL (#4038) · 3eb498e7
      Sayak Paul authored
      * add: controlnet sdxl.
      
      * modifications to controlnet.
      
      * run styling.
      
      * add: __init__.pys
      
      * incorporate https://github.com/huggingface/diffusers/pull/4019
      
       changes.
      
      * run make fix-copies.
      
      * resize the conditioning images.
      
      * remove autocast.
      
      * run styling.
      
      * disable autocast.
      
      * debugging
      
      * device placement.
      
      * back to autocast.
      
      * remove comment.
      
      * save some memory by reusing the vae and unet in the pipeline.
      
      * apply styling.
      
      * Allow low precision sd xl
      
      * finish
      
      * finish
      
      * changes to accommodate the improved VAE.
      
      * modifications to how we handle vae encoding in the training.
      
      * make style
      
      * make existing controlnet fast tests pass.
      
      * change vae checkpoint cli arg.
      
      * fix: vae pretrained paths.
      
      * fix: steps in get_scheduler().
      
      * debugging.
      
      * debugging./
      
      * fix: weight conversion.
      
      * add: docs.
      
      * add: limited tests./
      
      * add: datasets to the requirements.
      
      * update docstrings and incorporate the usage of watermarking.
      
      * incorporate fix from #4083
      
      * fix watermarking dependency handling.
      
      * run make-fix-copies.
      
      * Empty-Commit
      
      * Update requirements_sdxl.txt
      
      * remove vae upcasting part.
      
      * Apply suggestions from code review
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      
      * run make style
      
      * run make fix-copies.
      
      * disable suppot for multicontrolnet.
      
      * Apply suggestions from code review
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      
      * run make fix-copies.
      
      * dtyle/.
      
      * fix-copies.
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      3eb498e7
    • clarencechen's avatar
      Add Recent Timestep Scheduling Improvements to DDIM Inverse Scheduler (#3865) · c6e56e92
      clarencechen authored
      * Add Recent Timestep Scheduling Improvements to DDIM Inverse Scheduler
      
      Roll timesteps by one to reflect origin-destination semantic discrepancy
      
      Restore `set_alpha_to_one` option to handle negative initial timesteps
      
      Remove `set_alpha_to_zero` option not used due to previous truncation
      
      * Bugfix
      
      * Remove unnecessary calls to `detach()`
      
      Use `self.image_processor.preprocess` in DiffEdit pipeline functions
      
      * Preprocess list input for inverted image latents in diffedit pipeline
      
      * Add `timestep_spacing` and `steps_offset` to `DPMSolverMultistepInverseScheduler`
      
      * Update expected test results to account for inverting last forward diffusion step
      
      * Fix inversion progress bar bug
      
      * Add first draft for proper fast tests for DDIMInverseScheduler
      
      * Add deprecated DDIMInverseScheduler kwarg to ConfigMixer registry
      
      * Fix test failure in DPMMultistepInverseScheduler
      
      Invert step specification leads to negative noise variance in SDE-based algs
      
      Add first draft for proper fast tests for DPMMultistepInverseScheduler
      
      * Update expected test results to account for inverting last forward diffusion step
      
      Clean up diffedit fast test
      c6e56e92
    • Patrick von Platen's avatar
      Refactor execution device & cpu offload (#4114) · 27062c36
      Patrick von Platen authored
      * create general cpu offload & execution device
      
      * Remove boiler plate
      
      * finish
      
      * kp
      
      * Correct offload more pipelines
      
      * up
      
      * Update src/diffusers/pipelines/pipeline_utils.py
      
      * make style
      
      * up
      27062c36
    • takuoko's avatar
      [Enhance] Add rank in dreambooth (#4112) · 6427aa99
      takuoko authored
      add rank in dreambooth
      6427aa99
    • Seongsu Park's avatar
      [Docs] Korean translation update (#4022) · 8b18cd8e
      Seongsu Park authored
      * feat) optimization kr translation
      
      * fix) typo, italic setting
      
      * feat) dreambooth, text2image kr
      
      * feat) lora kr
      
      * fix) LoRA
      
      * fix) fp16 fix
      
      * fix) doc-builder style
      
      * fix) fp16 일부 단어 수정
      
      * fix) fp16 style fix
      
      * fix) opt, training docs update
      
      * merge conflict
      
      * Fix community pipelines (#3266)
      
      * Allow disabling torch 2_0 attention (#3273)
      
      * Allow disabling torch 2_0 attention
      
      * make style
      
      * Update src/diffusers/models/attention.py
      
      * Release: v0.16.1
      
      * feat) toctree update
      
      * feat) toctree update
      
      * Fix custom releases (#3708)
      
      * Fix custom releases
      
      * make style
      
      * Fix loading if unexpected keys are present (#3720)
      
      * Fix loading
      
      * make style
      
      * Release: v0.17.0
      
      * opt_overview
      
      * commit
      
      * Create pipeline_overview.mdx
      
      * unconditional_image_generatoin_1stDraft
      
      *  Add translation for write_own_pipeline.mdx
      
      * conditional-직역, 언컨디셔널
      
      * unconditional_i...
      8b18cd8e
  7. 17 Jul, 2023 2 commits
    • Will Berman's avatar
      t2i pipeline (#3932) · a0597f33
      Will Berman authored
      * Quick implementation of t2i-adapter
      
      Load adapter module with from_pretrained
      
      Prototyping generalized adapter framework
      
      Writeup doc string for sideload framework(WIP) + some minor update on implementation
      
      Update adapter models
      
      Remove old adapter optional args in UNet
      
      Add StableDiffusionAdapterPipeline unit test
      
      Handle cpu offload in StableDiffusionAdapterPipeline
      
      Auto correct coding style
      
      Update model repo name to "RzZ/sd-v1-4-adapter-pipeline"
      
      Refactor MultiAdapter to better compatible with config system
      
      Export MultiAdapter
      
      Create pipeline document template from controlnet
      
      Create dummy objects
      
      Supproting new AdapterLight model
      
      Fix StableDiffusionAdapterPipeline common pipeline test
      
      [WIP] Update adapter pipeline document
      
      Handle num_inference_steps in StableDiffusionAdapterPipeline
      
      Update definition of Adapter "channels_in"
      
      Update documents
      
      Apply code style
      
      Fix doc typo and merge error
      
      Update doc string and example
      
      Q...
      a0597f33
    • Kadir Nar's avatar
      📝 Update doc with more descriptive title and filename for "IF" section (#4049) · 39299546
      Kadir Nar authored
      * 📝 Update doc with more descriptive title and filename for "IF" section
      
      Updated the documentation to provide a more descriptive title and filename for the "IF" section. Previously, having only "IF" as the title was not conveying a clear meaning. By renaming the section to "DeepFloyd IF," we provide users with a more informative and context-specific heading.
      
      Thanks! 🙌
      
      * 📝 Update name for "IF" section in 📝 Update name for "IF" section in README
      
      Updated the link and name for the "IF" section in the README file to reflect the new heading "DeepFloyd IF."
      
      * 📝 Fix broken link for "Instruct Pix2Pix" section in README
      
      Fixed the broken link for the "Instruct Pix2Pix" section in the README file. Previously, the link was pointing to an incorrect location due to the presence of "stable_diffusion" in the URL. By removing "stable_diffusion" from the URL, I have corrected the error and ensured that users are directed to the correct section.
      
      * 🔧💼 Updated parameters in _toctree.yml file
      
      - ️ Updated 'local' parameter to 'api/pipelines/deepfloyd_if'.
      - ️ Updated 'title' parameter to 'DeepFloyd IF'.
      
      🎯 These changes aim to improve visibility and accessibility in the documentation of the DeepFloyd IF pipeline. 🚀📚
      39299546