1. 07 May, 2024 1 commit
  2. 23 Apr, 2024 1 commit
  3. 19 Apr, 2024 1 commit
  4. 16 Apr, 2024 1 commit
    • UmerHA's avatar
      Fixing implementation of ControlNet-XS (#6772) · fda1531d
      UmerHA authored
      
      
      * CheckIn - created DownSubBlocks
      
      * Added extra channels, implemented subblock fwd
      
      * Fixed connection sizes
      
      * checkin
      
      * Removed iter, next in forward
      
      * Models for SD21 & SDXL run through
      
      * Added back pipelines, cleared up connections
      
      * Cleaned up connection creation
      
      * added debug logs
      
      * updated logs
      
      * logs: added input loading
      
      * Update umer_debug_logger.py
      
      * log: Loading hint
      
      * Update umer_debug_logger.py
      
      * added logs
      
      * Changed debug logging
      
      * debug: added more logs
      
      * Fixed num_norm_groups
      
      * Debug: Logging all of SDXL input
      
      * Update umer_debug_logger.py
      
      * debug: updated logs
      
      * checkim
      
      * Readded tests
      
      * Removed debug logs
      
      * Fixed Slow Tests
      
      * Added value ckecks | Updated model_cpu_offload_seq
      
      * accelerate-offloading works ; fast tests work
      
      * Made unet & addon explicit in controlnet
      
      * Updated slow tests
      
      * Added dtype/device to ControlNetXS
      
      * Filled in test model paths
      
      * Added image_encoder/feature_extractor to XL pipe
      
      * Fixed fast tests
      
      * Added comments and docstrings
      
      * Fixed copies
      
      * Added docs ; Updates slow tests
      
      * Moved changes to UNetMidBlock2DCrossAttn
      
      * tiny cleanups
      
      * Removed stray prints
      
      * Removed ip adapters + freeU
      
      - Removed ip adapters + freeU as they don't make sense for ControlNet-XS
      - Fixed imports of UNet components
      
      * Fixed test_save_load_float16
      
      * Make style, quality, fix-copies
      
      * Changed loading/saving API for ControlNetXS
      
      - Changed loading/saving API for ControlNetXS
      - other small fixes
      
      * Removed ControlNet-XS from research examples
      
      * Make style, quality, fix-copies
      
      * Small fixes
      
      - deleted ControlNetXSModel.init_original
      - added time_embedding_mix to StableDiffusionControlNetXSPipeline .from_pretrained / StableDiffusionXLControlNetXSPipeline.from_pretrained
      - fixed copy hints
      
      * checkin May 11 '23
      
      * CheckIn Mar 12 '24
      
      * Fixed tests for SD
      
      * Added tests for UNetControlNetXSModel
      
      * Fixed SDXL tests
      
      * cleanup
      
      * Delete Pipfile
      
      * CheckIn Mar 20
      
      Started replacing sub blocks  by `ControlNetXSCrossAttnDownBlock2D` and `ControlNetXSCrossAttnUplock2D`
      
      * check-in Mar 23
      
      * checkin 24 Mar
      
      * Created init for UNetCnxs and CnxsAddon
      
      * CheckIn
      
      * Made from_modules, from_unet and no_control work
      
      * make style,quality,fix-copies & small changes
      
      * Fixed freezing
      
      * Added gradient ckpt'ing; fixed tests
      
      * Fix slow tests(+compile) ; clear naming confusion
      
      * Don't create UNet in init ; removed class_emb
      
      * Incorporated review feedback
      
      - Deleted get_base_pipeline /  get_controlnet_addon for pipes
      - Pipes inherit from StableDiffusionXLPipeline
      - Made module dicts for cnxs-addon's down/mid/up classes
      - Added support for qkv fusion and freeU
      
      * Make style, quality, fix-copies
      
      * Implemented review feedback
      
      * Removed compatibility check for vae/ctrl embedding
      
      * make style, quality, fix-copies
      
      * Delete Pipfile
      
      * Integrated review feedback
      
      - Importing ControlNetConditioningEmbedding now
      - get_down/mid/up_block_addon now outside class
      - renamed `do_control` to `apply_control`
      
      * Reduced size of test tensors
      
      For this, added `norm_num_groups` as parameter everywhere
      
      * Renamed cnxs-`Addon` to cnxs-`Adapter`
      
      - `ControlNetXSAddon` -> `ControlNetXSAdapter`
      - `ControlNetXSAddonDownBlockComponents` -> `DownBlockControlNetXSAdapter`, and similarly for mid/up
      - `get_mid_block_addon` -> `get_mid_block_adapter`, and similarly for mid/up
      
      * Fixed save_pretrained/from_pretrained bug
      
      * Removed redundant code
      
      ---------
      Co-authored-by: default avatarDhruv Nair <dhruv.nair@gmail.com>
      fda1531d
  5. 13 Apr, 2024 1 commit
  6. 02 Apr, 2024 1 commit
    • Bagheera's avatar
      7529 do not disable autocast for cuda devices (#7530) · 8e963d1c
      Bagheera authored
      
      
      * 7529 do not disable autocast for cuda devices
      
      * Remove typecasting error check for non-mps platforms, as a correct autocast implementation makes it a non-issue
      
      * add autocast fix to other training examples
      
      * disable native_amp for dreambooth (sdxl)
      
      * disable native_amp for pix2pix (sdxl)
      
      * remove tests from remaining files
      
      * disable native_amp on huggingface accelerator for every training example that uses it
      
      * convert more usages of autocast to nullcontext, make style fixes
      
      * make style fixes
      
      * style.
      
      * Empty-Commit
      
      ---------
      Co-authored-by: default avatarbghira <bghira@users.github.com>
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      8e963d1c
  7. 25 Mar, 2024 2 commits
  8. 20 Mar, 2024 1 commit
  9. 14 Mar, 2024 1 commit
    • M. Tolga Cangöz's avatar
      [`Tests`] Update a deprecated parameter in test files and fix several typos (#7277) · 5d848ec0
      M. Tolga Cangöz authored
      * Add properties and `IPAdapterTesterMixin` tests for `StableDiffusionPanoramaPipeline`
      
      * Fix variable name typo and update comments
      
      * Update deprecated `output_type="numpy"` to "np" in test files
      
      * Discard changes to src/diffusers/pipelines/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py
      
      * Update test_stable_diffusion_panorama.py
      
      * Update numbers in README.md
      
      * Update get_guidance_scale_embedding method to use timesteps instead of w
      
      * Update number of checkpoints in README.md
      
      * Add type hints and fix var name
      
      * Fix PyTorch's convention for inplace functions
      
      * Fix a typo
      
      * Revert "Fix PyTorch's convention for inplace functions"
      
      This reverts commit 74350cf65b2c9aa77f08bec7937d7a8b13edb509.
      
      * Fix typos
      
      * Indent
      
      * Refactor get_guidance_scale_embedding method in LEditsPPPipelineStableDiffusionXL class
      5d848ec0
  10. 13 Mar, 2024 1 commit
  11. 06 Mar, 2024 1 commit
  12. 05 Mar, 2024 1 commit
    • iczaw's avatar
      [Community] PromptDiffusion Pipeline (#6752) · 6246c70d
      iczaw authored
      
      
      * Create promptdiffusioncontrolnet.py
      
      * Update __init__.py
      
      Added PromptDiffusionControlNetModel
      
      * Update __init__.py
      
      Added PromptDiffusionControlNetModel
      
      * Update promptdiffusioncontrolnet.py
      
      * Create pipeline_prompt_diffusion.py
      
      Added Prompt Diffusion pipeline.
      
      * Create convert_original_promptdiffusion_to_diffusers.py
      
      * Update convert_from_ckpt.py
      
      Added download_promptdiffusion_from_original_ckpt, convert_promptdiffusion_checkpoint
      
      * Update promptdiffusioncontrolnet.py
      
      * Update pipeline_prompt_diffusion.py
      
      * Update README.md
      
      * Update pipeline_prompt_diffusion.py
      
      * Delete src/diffusers/models/promptdiffusioncontrolnet.py
      
      * Update __init__.py
      
      * Update __init__.py
      
      * Delete scripts/convert_original_promptdiffusion_to_diffusers.py
      
      * Update convert_from_ckpt.py
      
      * Update README.md
      
      * Delete examples/community/pipeline_prompt_diffusion.py
      
      * Create README.md
      
      * Create promptdiffusioncontrolnet.py
      
      * Create convert_original_promptdiffusion_to_diffusers.py
      
      * Create pipeline_prompt_diffusion.py
      
      * Update README.md
      
      * Update pipeline_prompt_diffusion.py
      
      * Update README.md
      
      * Update pipeline_prompt_diffusion.py
      
      * Update convert_original_promptdiffusion_to_diffusers.py
      
      * Update promptdiffusioncontrolnet.py
      
      * Update README.md
      
      ---------
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      6246c70d
  13. 04 Mar, 2024 1 commit
    • Linoy Tsaban's avatar
      [training scripts] add tags of diffusers-training (#7206) · 8da360aa
      Linoy Tsaban authored
      * add tags for diffusers training
      
      * add tags for diffusers training
      
      * add tags for diffusers training
      
      * add tags for diffusers training
      
      * add tags for diffusers training
      
      * add tags for diffusers training
      
      * add dora tags for drambooth lora scripts
      
      * style
      8da360aa
  14. 28 Feb, 2024 1 commit
  15. 16 Feb, 2024 1 commit
  16. 09 Feb, 2024 1 commit
  17. 08 Feb, 2024 1 commit
  18. 31 Jan, 2024 2 commits
  19. 28 Jan, 2024 1 commit
  20. 27 Jan, 2024 1 commit
  21. 26 Jan, 2024 1 commit
    • dg845's avatar
      Add Community Example Consistency Training Script (#6717) · b4220e97
      dg845 authored
      
      
      * initial commit for unconditional/class-conditional consistency training script
      
      * make style
      
      * Add entry for consistency training script in community README.
      
      * Move consistency training script from community to research_projects/consistency_training
      
      * Add requirements.txt and README to research_projects/consistency_training directory.
      
      * Manually revert community README changes for consistency training.
      
      * Fix path to script after moving script to research projects.
      
      * Add option to load U-Net weights from pretrained model.
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      b4220e97
  22. 24 Jan, 2024 1 commit
  23. 23 Jan, 2024 1 commit
    • Sayak Paul's avatar
      [Big refactor] move unets to `unets` module 🦋 (#6630) · 1f0705ad
      Sayak Paul authored
      * move unets to  module 🦋
      
      * parameterize unet-level import.
      
      * fix flax unet2dcondition model import
      
      * models __init__
      
      * mildly depcrecating models.unet_2d_blocks in favor of models.unets.unet_2d_blocks.
      
      * noqa
      
      * correct depcrecation behaviour
      
      * inherit from the actual classes.
      
      * Empty-Commit
      
      * backwards compatibility for unet_2d.py
      
      * backward compatibility for unet_2d_condition
      
      * bc for unet_1d
      
      * bc for unet_1d_blocks
      1f0705ad
  24. 22 Jan, 2024 1 commit
  25. 15 Jan, 2024 1 commit
  26. 12 Jan, 2024 1 commit
  27. 10 Jan, 2024 1 commit
    • Rahul Raman's avatar
      example: Train Instruct pix2 pix with lora implementation (#6469) · 2d1f2182
      Rahul Raman authored
      
      
      * base template file - train_instruct_pix2pix.py
      
      * additional import and parser argument requried for lora
      
      * finetune only instructpix2pix model -- no need to include these layers
      
      * inject lora layers
      
      * freeze unet model -- only lora layers are trained
      
      * training modifications to train only lora parameters
      
      * store only lora parameters
      
      * move train script to research project
      
      * run quality and style code checks
      
      * move train script to a new folder
      
      * add README
      
      * update README
      
      * update references in README
      
      ---------
      Co-authored-by: default avatarRahul Raman <rahulraman@gmail.com>
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      2d1f2182
  28. 05 Jan, 2024 2 commits
    • Sayak Paul's avatar
      Rename REAMDE.md to README.md · a483a8ed
      Sayak Paul authored
      a483a8ed
    • Sayak Paul's avatar
      [Experimental] Diffusion LoRA DPO training (#6422) · 2a97067b
      Sayak Paul authored
      * add: experimental script for diffusion dpo training.
      
      * random_crop cli.
      
      * fix: caption tokenization.
      
      * fix: pixel_values index.
      
      * fix: grad?
      
      * debug
      
      * fix: reduction.
      
      * fixes in the loss calculation.
      
      * style
      
      * fix: unwrap call.
      
      * fix: validation inference.
      
      * add: initial sdxl script
      
      * debug
      
      * make sure images in the tuple are of same res
      
      * fix model_max_length
      
      * report print
      
      * boom
      
      * fix: numerical issues.
      
      * fix: resolution
      
      * comment about resize.
      
      * change the order of the training transformation.
      
      * save call.
      
      * debug
      
      * remove print
      
      * manually detaching necessary?
      
      * use the same vae for validation.
      
      * add: readme.
      2a97067b
  29. 03 Jan, 2024 1 commit
  30. 29 Dec, 2023 2 commits
  31. 27 Dec, 2023 1 commit
  32. 21 Dec, 2023 1 commit
  33. 11 Dec, 2023 1 commit
  34. 06 Dec, 2023 1 commit
  35. 20 Nov, 2023 1 commit
  36. 17 Nov, 2023 1 commit