1. 09 Oct, 2023 11 commits
  2. 08 Oct, 2023 1 commit
  3. 06 Oct, 2023 8 commits
  4. 05 Oct, 2023 4 commits
    • Bagheera's avatar
      Min-SNR Gamma: correct the fix for SNR weighted loss in v-prediction … (#5238) · 02a8d664
      Bagheera authored
      
      
      Min-SNR Gamma: correct the fix for SNR weighted loss in v-prediction by adding 1 to SNR rather than the resulting loss weights
      Co-authored-by: default avatarbghira <bghira@users.github.com>
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      02a8d664
    • Sayak Paul's avatar
      add: entry for DDPO support. (#5250) · e6faf607
      Sayak Paul authored
      * add: entry for DDPO support.
      
      * move to training
      
      * address steven's comments./
      e6faf607
    • Dhruv Nair's avatar
      pin torch version (#5297) · d8d8b2ae
      Dhruv Nair authored
      d8d8b2ae
    • Kadir Nar's avatar
      [Core] Add FreeU mechanism (#5164) · 84b82a6c
      Kadir Nar authored
      *  Added Fourier filter function to upsample blocks
      
      * 🔧 Update Fourier_filter for float16 support
      
      *  Added UNetFreeUConfig to UNet model for FreeU adaptation 🛠
      
      ️
      
      * move unet to its original form and add fourier_filter to torch_utils.
      
      * implement freeU enable mechanism
      
      * implement disable mechanism
      
      * resolution index.
      
      * correct resolution idx condition.
      
      * fix copies.
      
      * no need to use resolution_idx in vae.
      
      * spell out the kwargs
      
      * proper config property
      
      * fix attribution setting
      
      * place unet hasattr properly.
      
      * fix: attribute access.
      
      * proper disable
      
      * remove validation method.
      
      * debug
      
      * debug
      
      * debug
      
      * debug
      
      * debug
      
      * debug
      
      * potential fix.
      
      * add: doc.
      
      * fix copies
      
      * add: tests.
      
      * add: support freeU in SDXL.
      
      * set default value of resolution idx.
      
      * set default values for resolution_idx.
      
      * fix copies
      
      * fix rest.
      
      * fix copies
      
      * address PR comments.
      
      * run fix-copies
      
      * move apply_free_u to utils and other minors.
      
      * introduce support for video (unet3D)
      
      * minor ups
      
      * consistent fix-copies.
      
      * consistent stuff
      
      * fix-copies
      
      * add: rest
      
      * add: docs.
      
      * fix: tests
      
      * fix: doc path
      
      * Apply suggestions from code review
      Co-authored-by: default avatarSteven Liu <59462357+stevhliu@users.noreply.github.com>
      
      * style up
      
      * move to techniques.
      
      * add: slow test for sd freeu.
      
      * add: slow test for sd freeu.
      
      * add: slow test for sd freeu.
      
      * add: slow test for sd freeu.
      
      * add: slow test for sd freeu.
      
      * add: slow test for sd freeu.
      
      * add: slow test for video with freeu
      
      * add: slow test for video with freeu
      
      * add: slow test for video with freeu
      
      * style
      
      ---------
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      Co-authored-by: default avatarSteven Liu <59462357+stevhliu@users.noreply.github.com>
      84b82a6c
  5. 04 Oct, 2023 4 commits
  6. 03 Oct, 2023 2 commits
  7. 02 Oct, 2023 10 commits
    • Patrick von Platen's avatar
      make fix copies · 24575991
      Patrick von Platen authored
      24575991
    • Patrick von Platen's avatar
      [Schedulers] Fix callback steps (#5261) · bdd16116
      Patrick von Platen authored
      * fix all
      
      * make fix copies
      
      * make fix copies
      bdd16116
    • Leng Yue's avatar
      Update UniPC to support 1D diffusion. (#5199) · c8b0f0eb
      Leng Yue authored
      
      
      * Update Unipc einsum to support 1D and 3D diffusion.
      
      * Add unittest
      
      * Update unittest & edge case
      
      * Fix unittest
      
      * Fix testing_utils.py
      
      * Fix unittest file
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      c8b0f0eb
    • stano's avatar
      Add a docstring for the AutoencoderKL's encode (#5239) · 7a4324cc
      stano authored
      
      
      * Add docstring for the AutoencoderKL's encode
      
      #5229
      
      * Support Python 3.8 syntax in AutoencoderKL.decode type hints
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      
      * Follow the style guidelines in AutoencoderKL's encode
      
      #5230
      
      ---------
      
      Co-authored-by: stano <>
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      7a4324cc
    • stano's avatar
      Add docstring for the AutoencoderKL's decode (#5242) · 37a787a1
      stano authored
      * Add docstring for the AutoencoderKL's decode
      
      #5230
      
      * Follow the style guidelines in AutoencoderKL's decode
      
      #5230
      
      ---------
      
      Co-authored-by: stano <>
      37a787a1
    • Sayak Paul's avatar
      fix: how print training resume logs. (#5117) · d56825e4
      Sayak Paul authored
      
      
      * fix: how print training resume logs.
      
      * propagate changes to text-to-image scripts.
      
      * propagate changes to instructpix2pix.
      
      * propagate changes to dreambooth
      
      * propagate changes to custom diffusion and instructpix2pix
      
      * propagate changes to kandinsky
      
      * propagate changes to textual inv.
      
      * debug
      
      * fix: checkpointing.
      
      * debug
      
      * debug
      
      * debug
      
      * back to the square
      
      * debug
      
      * debug
      
      * change condition order.
      
      * debug
      
      * debug
      
      * debug
      
      * debug
      
      * revert to original
      
      * clean
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      d56825e4
    • dg845's avatar
      [WIP] Refactor UniDiffuser Pipeline and Tests (#4948) · cd1b8d7c
      dg845 authored
      
      
      * Add VAE slicing and tiling methods.
      
      * Switch to using VaeImageProcessing for preprocessing and postprocessing of images.
      
      * Rename the VaeImageProcessor to vae_image_processor to avoid a name clash with the CLIPImageProcessor (image_processor).
      
      * Remove the postprocess() function because we're using a VaeImageProcessor instead.
      
      * Remove UniDiffuserPipeline.decode_image_latents because we're using VaeImageProcessor instead.
      
      * Refactor generating text from text latents into a decode_text_latents method.
      
      * Add enable_full_determinism() to UniDiffuser tests.
      
      * make style
      
      * Add PipelineLatentTesterMixin to UniDiffuserPipelineFastTests.
      
      * Remove enable_model_cpu_offload since it is now part of DiffusionPipeline.
      
      * Rename the VaeImageProcessor instance to self.image_processor for consistency with other pipelines and rename the CLIPImageProcessor instance to clip_image_processor to avoid a name clash.
      
      * Update UniDiffuser conversion script.
      
      * Make safe_serialization configurable in UniDiffuser conversion script.
      
      * Rename image_processor to clip_image_processor in UniDiffuser tests.
      
      * Add PipelineKarrasSchedulerTesterMixin to UniDiffuserPipelineFastTests.
      
      * Add initial test for compiling the UniDiffuser model (not tested yet).
      
      * Update encode_prompt and _encode_prompt to match that of StableDiffusionPipeline.
      
      * Turn off standard classifier-free guidance for now.
      
      * make style
      
      * make fix-copies
      
      * apply suggestions from review
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      cd1b8d7c
    • Patrick von Platen's avatar
      make style · db91e710
      Patrick von Platen authored
      db91e710
    • Nandika-A's avatar
      Add docstrings in forward methods of adapter model (#5253) · 2a62aadc
      Nandika-A authored
      * added docstrings in forward methods of T2IAdapter model and FullAdapter model
      
      * added docstrings in forward methods of FullAdapterXL and AdapterBlock models
      
      * Added docstrings in forward methods of adapter models
      2a62aadc
    • Patrick von Platen's avatar
      [PEFT warnings] Only sure deprecation warnings in the future (#5240) · 4f74a5e1
      Patrick von Platen authored
      * [PEFT warnings] Only sure deprecation warnings in the future
      
      * make style
      4f74a5e1