1. 13 Feb, 2024 1 commit
  2. 09 Feb, 2024 2 commits
  3. 08 Feb, 2024 2 commits
  4. 07 Feb, 2024 1 commit
    • Sayak Paul's avatar
      [Model Card] standardize dreambooth model card (#6729) · 76696dca
      Sayak Paul authored
      * feat: standarize model card creation for dreambooth training.
      
      * correct 'inference
      
      * remove comments.
      
      * take component out of kwargs
      
      * style
      
      * add: card template to have a leaner description.
      
      * widget support.
      
      * propagate changes to train_dreambooth_lora
      
      * propagate changes to custom diffusion
      
      * make widget properly type-annotated
      76696dca
  5. 04 Feb, 2024 1 commit
  6. 03 Feb, 2024 1 commit
  7. 16 Jan, 2024 1 commit
  8. 15 Jan, 2024 1 commit
  9. 12 Jan, 2024 3 commits
  10. 11 Jan, 2024 1 commit
  11. 09 Jan, 2024 1 commit
  12. 05 Jan, 2024 1 commit
  13. 03 Jan, 2024 1 commit
  14. 28 Dec, 2023 1 commit
  15. 27 Dec, 2023 1 commit
  16. 25 Dec, 2023 1 commit
    • Sayak Paul's avatar
      [Tests] Speed up example tests (#6319) · f4b0b26f
      Sayak Paul authored
      * remove validation args from textual onverson tests
      
      * reduce number of train steps in textual inversion tests
      
      * fix: directories.
      
      * debig
      
      * fix: directories.
      
      * remove validation tests from textual onversion
      
      * try reducing the time of test_text_to_image_checkpointing_use_ema
      
      * fix: directories
      
      * speed up test_text_to_image_checkpointing
      
      * speed up test_text_to_image_checkpointing_checkpoints_total_limit_removes_multiple_checkpoints
      
      * fix
      
      * speed up test_instruct_pix2pix_checkpointing_checkpoints_total_limit_removes_multiple_checkpoints
      
      * set checkpoints_total_limit to 2.
      
      * test_text_to_image_lora_checkpointing_checkpoints_total_limit_removes_multiple_checkpoints speed up
      
      * speed up test_unconditional_checkpointing_checkpoints_total_limit_removes_multiple_checkpoints
      
      * debug
      
      * fix: directories.
      
      * speed up test_instruct_pix2pix_checkpointing_checkpoints_total_limit
      
      * speed up: test_controlnet_checkpointing_checkpoints_total_limit_removes_multiple_checkpoints
      
      * speed up test_controlnet_sdxl
      
      * speed up dreambooth tests
      
      * speed up test_dreambooth_lora_checkpointing_checkpoints_total_limit_removes_multiple_checkpoints
      
      * speed up test_custom_diffusion_checkpointing_checkpoints_total_limit_removes_multiple_checkpoints
      
      * speed up test_text_to_image_lora_sdxl_text_encoder_checkpointing_checkpoints_total_limit
      
      * speed up # checkpoint-2 should have been deleted
      
      * speed up examples/text_to_image/test_text_to_image.py::TextToImage::test_text_to_image_checkpointing_checkpoints_total_limit
      
      * additional speed ups
      
      * style
      f4b0b26f
  17. 24 Dec, 2023 1 commit
  18. 22 Dec, 2023 1 commit
  19. 19 Dec, 2023 1 commit
  20. 18 Dec, 2023 1 commit
  21. 07 Dec, 2023 1 commit
    • Younes Belkada's avatar
      [`PEFT`] Adapt example scripts to use PEFT (#5388) · c2717317
      Younes Belkada authored
      
      
      * adapt example scripts to use PEFT
      
      * Update examples/text_to_image/train_text_to_image_lora.py
      
      * fix
      
      * add for SDXL
      
      * oops
      
      * make sure to install peft
      
      * fix
      
      * fix
      
      * fix dreambooth and lora
      
      * more fixes
      
      * add peft to requirements.txt
      
      * fix
      
      * final fix
      
      * add peft version in requirements
      
      * remove comment
      
      * change variable names
      
      * add few lines in readme
      
      * add to reqs
      
      * style
      
      * fix issues
      
      * fix lora dreambooth xl tests
      
      * init_lora_weights to gaussian and add out proj where missing
      
      * ammend requirements.
      
      * ammend requirements.txt
      
      * add correct peft versions
      
      ---------
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      c2717317
  22. 01 Dec, 2023 1 commit
  23. 29 Nov, 2023 2 commits
  24. 27 Nov, 2023 1 commit
  25. 23 Nov, 2023 2 commits
  26. 21 Nov, 2023 2 commits
    • Patrick von Platen's avatar
      [Lora] Seperate logic (#5809) · 13d73d93
      Patrick von Platen authored
      * [Lora] Seperate logic
      
      * [Lora] Seperate logic
      
      * [Lora] Seperate logic
      
      * add comments to explain the code better
      
      * add comments to explain the code better
      13d73d93
    • Linoy Tsaban's avatar
      Add features to the Dreambooth LoRA SDXL training script (#5508) · 6fac1369
      Linoy Tsaban authored
      
      
      * Additions:
      - support for different lr for text encoder
      - support for Prodigy optimizer
      - support for min snr gamma
      - support for custom captions and dataset loading from the hub
      
      * adjusted --caption_column behaviour (to -not- use the second column of the dataset by default if --caption_column is not provided)
      
      * fixed --output_dir / --model_dir_name confusion
      
      * added --repeats, --adam_weight_decay_text_encoder
      + some fixes
      
      * Update examples/dreambooth/train_dreambooth_lora_sdxl.py
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      
      * Update examples/dreambooth/train_dreambooth_lora_sdxl.py
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      
      * Update examples/dreambooth/train_dreambooth_lora_sdxl.py
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      
      * - import compute_snr from diffusers/training_utils.py
      - cluster adamw together
      - when using 'prodigy', if --train_text_encoder == True and --text_encoder_lr != --learning rate, changes the lr of the text encoders optimization params to be --learning_rate (otherwise errors)
      
      * shape fixes when custom captions are used
      
      * formatting and a little cleanup
      
      * code styling
      
      * --repeats default value fixed, changed to 1
      
      * bug fix - removed redundant lines of embedding concatenation when using prior_preservation (that duplicated class_prompt embeddings)
      
      * changed dataset loading logic according to the following usecases (to avoid unnecessary dependency on datasets)-
      1. user provides --dataset_name
      2. user provides local dir --instance_data_dir that contains a metadata .jsonl file
      3. user provides local dir --instance_data_dir that contains only images
      in cases [1,2] we import datasets and use load_dataset method, in case [3] we process the data same as in the original script setting
      
      * styling fix
      
      * arg name fix
      
      * adjusted the --repeats logic
      
      * -removed redundant arg and 'if' when loading local folder with prompts
      -updated readme template
      -some default val fixes
      -custom caption tests
      
      * image path fix for readme
      
      * code style
      
      * bug fix
      
      * --caption_column arg
      
      * readme fix
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      Co-authored-by: default avatarLinoy Tsaban <linoy@huggingface.co>
      6fac1369
  27. 17 Nov, 2023 1 commit
  28. 14 Nov, 2023 1 commit
    • Sayak Paul's avatar
      [Refactor] refactor `loaders.py` to make it cleaner and leaner. (#5771) · ded93f79
      Sayak Paul authored
      
      
      * refactor loaders.py to make it cleaner and leaner.
      
      * refactor loaders init
      
      * inits.
      
      * textual inversion to the init.
      
      * inits.
      
      * remove certain modules from the main init.
      
      * AttnProcsLayers
      
      * fix imports
      
      * avoid circular import.
      
      * fix circular import pt 2.
      
      * address PR comments
      
      * imports
      
      * fix: imports.
      
      * remove from main init for avoiding circular deps.
      
      * remove spurious deps.
      
      * fix-copies.
      
      * fix imports.
      
      * more debug
      
      * more debug
      
      * Apply suggestions from code review
      
      * Apply suggestions from code review
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      ded93f79
  29. 10 Nov, 2023 1 commit
  30. 06 Nov, 2023 1 commit
  31. 27 Oct, 2023 1 commit
  32. 26 Oct, 2023 1 commit
  33. 23 Oct, 2023 1 commit